7 for line in open("input.txt", "r"):
9 (min_count, max_count, letter, password) = regex.match('([0-9]+)-([0-9]+) ([a-z]): ([a-z]*)', line).group(1,2,3,4)
10 min_count=int(min_count)
11 max_count=int(max_count)
16 if count >= min_count and count <= max_count:
19 print(valid_lines, "valid lines of", total_lines)