#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main(void)
{
	int a, b,qes;
	int x, y;
scanf("%d", &x);
scanf("%d", &y);
qes=x+y;
	a = 1;
	b = 0;
	while (qes / a != 0)
	{
		a *= 10;
		b++;
	}
	printf("%d", b);
	return 0;
}