#include<stdio.h>
int main (void){
	int x1,x2,s=1,gou;
	scanf("%d",&x1);
	scanf("%d",&x2);
	gou = x1 + x2;
	if(gou < 10){
	}
	while(gou >= 10){
		gou = gou / 10;
		s = s+1;
	}
	printf("%d",s);	
	return(0);
}