#include<stdio.h>
int main()
{
	int a[256],b[256],i=0,d;
	int m[256],c;
	while(scanf("%d %d",&a[i],&b[i])!=EOF){
		m[i]=a[i]+b[i];
		i++;
		d=i;
	}
	for(i=0;i<d;i++){
		c=0;
		for(;;){
			c++;
			if((m[i]/=10)==0)break;
		}
		printf("%d\n",c);
	}
	return 0;
}