#include <stdio.h>
#include <math.h>

int main()
{
	double a,b;
	double total,keta;
	int iketa;

	while(scanf("%lf %lf",&a,&b) != EOF){
		total = a + b;
		keta = log10(total);
		keta = keta + 1;
		printf("%d\n",(int)keta);
	}

	return 0;
}