Run id: 150098

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