#include <iostream>
using namespace std;
int main()
{
int n, contaDig=0;
cin >> n;
while(n>0){
contaDig++;
n = n / 10;
}
cout << contaDig;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgaW50IG4sIGNvbnRhRGlnPTA7CiAgICBjaW4gPj4gbjsKICAgIHdoaWxlKG4+MCl7CiAgICAgICAgY29udGFEaWcrKzsKICAgICAgICBuID0gbiAvIDEwOwogICAgfQogICAgY291dCA8PCBjb250YURpZzsKCiAgICByZXR1cm4gMDsKCn0=