Run id: 6409

------Input------
1 9 7 4 7 2 0 9 7 5 0
------Answer-----
41
------Your output-----
82