#include <stdio.h>

int main(int argc, char const *argv[])
{
	int a, b, count, sum;
	while(scanf("%d%d", &a, &b)!=EOF) {
		count = 1;
		sum = a+b;
		while((sum/=10)!=0) {
			count++;
		}
		printf("%d\n", count);
	}
	return 0;
}