def parse_program(lines):
    """Parse lines to list of lists with instruction name and values for it."""
    program = []
    for line in lines:
        name, nums = line.split(maxsplit=1)
        program.append((name, [int(num) for num in nums.split()]))
    return program