Run id: 130187

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