#include<iostream>
using namespace std;


int main(){
	int a,b,c,d;
	int counter=1;
	while(cin>> a >> b){
	c=a+b;
	
		while(c/10!=0){	
			
		c=c/10;
		counter++;
		}
	
	cout<<counter<<endl;
	counter=1;
}
	
}