#include<stdio.h>

int main()
{
	unsigned int a,b,sum;
	unsigned char digits;

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

		while(sum != 0)	
		{
			digits++;
			sum = sum / 10;
		}
		printf("%d\n",digits);
	}
	return 0;
}