#include <iostream>

using namespace std;

int main(void){
    int a,b,c,s;
    while(cin >> a >> b){
        s = a + b;
        for(c=0;c < 7;c ++){
            if(s > 0){
                s = s/10;
            }else{
                break;
            }
        }
        cout << c << endl;
    }
}

