def parse(filename: str) -> list[list[int]]: with open(filename) as f: return [[int(i) for i in line.strip("\n")] for line in f.readlines()]