Run id: 123576

------Input------
1236 3 31
------Answer-----
91
------Your output-----
4195155