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