Run id: 99571

------Input------
6404
------Answer-----
8
------Your output-----
0