#include <stdio.h>

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

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