Run id: 114662

------Input------
6876
------Answer-----
8
------Your output-----
0