Run id: 122385

------Input------
6876
------Answer-----
8
------Your output-----
9