Run id: 102742

------Input------
5
------Answer-----
9998
------Your output-----
10000