Run id: 7037

------Input------
5 10 52 121 46 97
------Answer-----
2
------Your output-----
-116537576