Run id: 99756

------Input------
3
------Answer-----
31
------Your output-----
3