#include <stdio.h>

int main(void) {
	int n, i=0;
	scanf("%d",&n);
	
	while(n!=0){
		n=n/10;
		i=i+1;
	}
	
	printf("%d",i);
	return 0;
}