#include <stdio.h>

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