Run id: 147860

------Input------
5
------Answer-----
9998
------Your output-----
9997