#include <stdio.h>

int main(void)
{
	int a, b;
	int n;
	int i;
	
	while (1){
		scanf("%d%d", &a, &b);
		n = 1;
		i = 0;
		while ((a + b) / n != 0) n *= 10, i++;
		printf("%d\n", i);
	}
	
	return (0);
}