from intcode_computer import execute_program

if __name__ == '__main__':
    with open('puzzle_9_input') as f:
        memory = [int(elem) for elem in f.read().split(',')]

    # Part 1
    outputs = list(execute_program(memory.copy(), [1]))
    print(f'Solution: {outputs[0]}')

    # Part 2
    outputs = list(execute_program(memory.copy(), [2]))
    print(f'Solution: {outputs[0]}')
