Run id: 110933

------Input------
10 2 4 8
------Answer-----
2
------Your output-----
3