Run id: 133094

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