Run id: 149872

------Input------
6876
------Answer-----
8
------Your output-----
1