Run id: 123922

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