#include <stdio.h>

int main(){
	int a,b,n=1,c;
	while(scanf("%d %d",&a,&b)!=EOF){
		//scanf("%d %d",&a,&b);
		c=a+b;
		while(1){
			c=c/10;
			n++;
			if(c<10) break;
			
		}
		printf("%d",n);
		n=1;
	}
	return 0;
}