Run id: 3799

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