#include<stdio.h>

int main()
{
	int a[200],b[200],i=0,j,count=0,z;
	while(scanf("%d %d",&a[i],&b[i]) != EOF){
		i++;
	}
	for(j=0;j<i;j++){
		z=a[j]+b[j];
		for(count=0;z!=0;count++) z/=10;
		printf("%d\n",count);
		count=0;
	}
	return 0;
}