#include <iostream>
using namespace std;

int main(){
    
    int a,b,c,t;
    
    while(cin>>a>>b){
        c=a+b;
        t=0;
        while(c!=0){
            c /=10;
            t++;
        }
        cout<<t<<endl;
    }
}