import io


def parse(stdin: io.TextIOWrapper) -> list:
    """
    Parse an input program into a list of lists.
    """

    return [
        line.split(" ") for line in stdin.read().strip().split("\n")
    ]