import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
int x=1, n;
Scanner in
= new Scanner
(System.
in); n = in.nextInt();
while ((n/=10) > 0)
{
x++;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewogIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgogIHsKICAgIGludCB4PTEsIG47CiAgICBTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCW4gPSBpbi5uZXh0SW50KCk7CiAgICB3aGlsZSAoKG4vPTEwKSA+IDApCiAgICB7CiAgICAgIHgrKzsKICAgIH0KICAgIFN5c3RlbS5vdXQucHJpbnRsbih4KTsKICB9Cn0=