Run id: 97491

------Input------
5 1 1 1 3 1 2
------Answer-----
84
------Your output-----
Hi, 5. What's the matter?