Run id: 107374

------Input------
5 52
------Answer-----
9000
------Your output-----
13000