Run id: 114354

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