Run id: 117399

------Input------
4 500
------Answer-----
317
------Your output-----
324