Run id: 2536

------Input------
2 0 1 0 3 0 2
------Answer-----
48
------Your output-----
34