Run id: 149870

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