#include <stdio.h>

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

	return 0;
}