Run id: 120487

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