#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,h=0;
	cin>>n;
	if (n==0){
			cout<<1<<endl;
			return 0;
		}
		while (n!=0){
			n/=10;
			h++;
		}
			cout<<h<<endl;
	return 0;
}
/**************************************************************
	Problem: 1710
	User: xiaojingxuan
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/