Run id: 99675

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