Run id: 150101

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