Run id: 100514

------Input------
10 6 30 4
------Answer-----
20
------Your output-----
30