Run id: 117732

------Input------
6876
------Answer-----
8
------Your output-----
6