Run id: 3124

------Input------
507 2591
------Answer-----
506
------Your output-----
1013