Run id: 3712

------Input------
1 6 7 4
------Answer-----
4
------Your output-----
7613698