#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int main()
{
    long long n;
    if(!(cin>>n)) {
        cout<<"Invalid input"<<endl;
    }
    else{
        long long temp = abs(n);
        int count = 0;
        if(temp == 0){
            count = 1;
        }else{
            while(temp > 0){
                temp /= 10;
                cout++;
            }
        }
        cout<<count<<endl;
    }
    return 0;
}