Run id: 103228

------Input------
5 1 2 4 8
------Answer-----
16
------Your output-----
8