#include<iostream>
using namespace std;
int main(){
	
	int a,b,i=1,c=1;
	cin>>a>>b;
	a=a+b;
	while(a/c!=0){
		if(a/c!=0){
			c=c*10;
			i++;
		}
		else{
			break;
		}
	}
	i=i-1;
	cout<<i<<endl;
	
				
	return 0;
}