#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int a,b,i,c=0;
while(scanf("%d%d",&a,&b)!=EOF){
a=a+b;
for(i=1;i<10000000000;i*=10){
	if(a/i==0)break;
	c++;
}

cout<<c<<endl;
}
return 0;
}