#include<stdio.h>


int main()
{
	long a,b,sum,count=0;

	while(scanf("%ld %ld",&a,&b)==2)
	{
		sum=a+b;

		while(sum>0)
		{
			sum=sum/10;
			count++;
		}

		printf("%d\n",count);
		count=0;
	}
		
	
}