Run id: 123889

------Input------
9
------Answer-----
766
------Your output-----
10