Run id: 114365

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