Run id: 116270

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