Run id: 3714

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