def parse_input(txt_path):
    """parse input TXT file to input list"""
    inputs = []
    with open(txt_path, encoding="UTF-8") as file:
        for line in file:
            inputs.append([int(x) for x in line.strip()])
    return inputs