#include<stdio.h>
int main(void)
{
	int a, b, cnt, i, n, A = 0, B = 0;
	while (scanf("%d %d", &a, &b) != EOF) {
		a = a + b;
		if (10 > a) {
			printf("1\n");
		}
		else {
			while (1) {
				a = a / 10;
				B++;
				if (a < 10) {
					printf("%d\n", B+1);
					break;
				}
			}
		}
		B = 0;
	}
}