Run id: 150126

------Input------
7
------Answer-----
616
------Your output-----
617