Run id: 93702

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