
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
    int a,b,c,count=0;
    stringstream s;
    while(cin>>a>>b){
    c=a+b;
    s<<c;

    for(int i=0;i<s.str().size();i++){
        count++;
    }
    cout<<count<<endl;
        s.str("");
        count=0;
    }
    
    return 0;
}