#include<iostream>

using namespace std;
int main(){
    int a,b;
    while(true){
        cin >> a >> b;
        if(a == EOF){
            return 0;
        }
        a += b;
        int i = 0;
        while(a > 0){
            a /= 10;
            i++;
        }

        cout << i << endl;
    }
    return 0;
}