Run id: 120116

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