#include<stdio.h>
int main(void)
{
	int a,b,count,sum;
	while(scanf("%d %d",&a,&b)!=EOF){
		count=0;
		sum=a+b;
		while(sum>9){
			sum=sum/10;
			count++;
		}
		printf("%d\n",count+1);
	}
	return 0;
}