Run id: 2347

------Input------
472
------Answer-----
6
------Your output-----
678910111213141516192325273031