from shared.intcode import Intcode


data = [3,21,1008,21,8,20,1005,20,22,107,8,21,20,1006,20,31,
1106,0,36,98,0,0,1002,21,125,20,4,20,1105,1,46,104,
999,1105,1,46,1101,1000,1,20,4,20,1105,1,46,98,99]

ic = Intcode(data)
for i in [7,8,9]:
  ic.setInput(i)
  print(f'=={i}== {ic.run()[1][-1]}')
