#include<stdio.h>
int main(){
	int a,b,c,i,count;
	while(scanf("%d%d",&a,&b)){
		count=1;
		if(a>=0 && b>=0){
			c = a+b;
			for(i=10;i<=c;i *=10){
				count++;
			}
			printf("%d\n",count);
		}
	}
	return 0;
}