#include<iostream>
using namespace std;
int main(){
    while(1){
        int a,b;
        cin>>a>>b;
        if(cin.eof())break;
        int sum=a+b;
        unsigned count=1;
        while(sum/10!=0){
            sum/=10;
            count++;
        }
        cout<<count<<endl;
    }
    return 0;
}
