#include<bits/stdc++.h> using namespace std; int main(){ long long a,b=0; cin>>a; do{ a=a/10; b++; }while(a!=0); cout<<b; return 0; }