#include<stdio.h>

int main() {
	int a, b;
	while (1) {
		if (scanf("%d %d", &a, &b) == EOF)break;
		else {
			a = a + b;
			b = 0;
			while (a) {
				b++;
				a = a / 10;
			}
		}
		printf("%d\n", b);
	}
	return 0;
}
