#include
using namespace std;
int main() {
int i,j=0,k,count=0;;
cin>>i;
while(i!=0)
{
k=i%10;
j=j*10+k;
i=i/10;
count++;
}
cout<<count;
return 0;
}
#include
using namespace std;
int main() {
int i,j=0,k,count=0;;
cin>>i;
while(i!=0)
{
k=i%10;
j=j*10+k;
i=i/10;
count++;
}
cout<<count;
return 0;
}