Run id: 109286

------Input------
97 9 87
------Answer-----
97
------Your output-----
0