Run id: 99509

------Input------
6404
------Answer-----
8
------Your output-----
5