#include <iostream>
#include <math.h>

using namespace std;

//?????°?±?????????¢??°Figure
int Figure(int a, int b){
    //a+b=0???????????????
    if((a+b) == 0){
        return 1;
    }
    else {
        int figure = (int) log10(a + b) + 1;
        return figure;
    }
}

int main(){
    int a = 0, b = 0;
    //????????????????????????????????° count
    int count = 0;
    //??????????´???????ans?????¨????????????200??¨???
    int ans[200];

    while(cin >> a >> b){
        ans[count] = Figure(a, b);
        count++;
    }

    for(int i = 0; i < count; i++){
        cout << ans[i] << endl;
    }

    return 0;

}