#include <stdio.h>

int main(void){
	int a, b;
	int cnt = 0;

	while(scanf("%d %d", &a, &b) != EOF){
		cnt = 0;
		a = a+b;
		while(a != 0){
			a = a / 10;
			cnt++;
		}
		printf("%d\n", cnt);
	}

	return 0;
}