#include<iostream> #include<cmath> using namespace std; int main() { int a,b=0; cin>>a; a=abs(a); while(a>0) { a/=10; b++; } cout<<b; return 0; }