Run id: 138476

------Input------
8 1750
------Answer-----
1000
------Your output-----
3856