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