Run id: 119805

------Input------
6876
------Answer-----
8
------Your output-----
3