def parse_input(fname: str):
    """Read the input file and return the parsed data."""
    data = []
    with open(fname, "rt") as inf:
        for line in inf:
            (op, arg) = line.strip().split()
            data.append((op, int(arg)))
    return data