Run id: 5818

------Input------
73 74 54 78 60 20 9
------Answer-----
52
------Your output-----
1086666