def main(): xs = list(map(str.strip, sys.stdin.readlines())) print('part 1: ', count_it(filter(nice, xs))) print('part 2: ', count_it(filter(nice2, xs)))
def las(n): return ''.join(str(count_it(g)) + k for k, g in groupby(n))