#include <stdio.h>

int main(){
	int i,j;
	int a,count;
		while(scanf("%d %d\n",&i,&j)!=EOF){
			a=i+j;
			count = 0;
			while(a/10>0){
				a=a/10;
				count++;
			}
			count++;
			printf("%d\n",count);
		}
			
	return 0;
}