Run id: 119806

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