Run id: 5587

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