#include<iostream>
using namespace std;
 
int main(){
    int x,y;

    while(cin>>x>>y){
        x+=y;
        int sum=0;
        while(x){
			sum++;
			x/=10;
		}
        cout<<sum<<endl;
    }
    return 0;
}