Run id: 150129

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