Run id: 5374

------Input------
5 6 0
------Answer-----
560
------Your output-----
5