#include<stdio.h>
int main(){
	int a,b,c,i,count;
	while(scanf("%d%d",&a,&b)){
		count=0;
		if(a>0 && b>0){
			c = a+b;
			for(i=1;i<=c;i *=10){
				count++;
			}
		}
			printf("%d\n",count);
	}
	return 0;
}