from typing import List


def parse_input_file(file_path: str) -> List[List[int]]:
    """Parse a file with the following format:
    21 22 24
    12
    7 21 23

    Returns each line as integers in a nested list
    """
    with open(file_path) as input_file:
        parsed_file = [list(map(int, line.split())) for line in input_file.readlines()]
    return parsed_file