#include <stdio.h>

void solve(int a){
	int ans = 0;
	while (a > 0){
		ans ++;
		a /= 10;
	}
	printf("%d\n", ans);
}

int main (){
	int a, b;
	while (~scanf("%d%d", &a, &b)){
		solve(a+b);
	}
	return 0;
}