#include <stdio.h>
#include <math.h>

#define DEBUG

#ifndef DEBUG 
#define fprintf (void)
#endif 

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