#include <iostream>
using namespace std;
int main(){
    int num;
    int a,b;
    int count;
    
    while(cin >> a >> b){
        count = 0;
        num = a+b;
        while(1){
            count += 1;
            num /= 10;
            if(num==0) break;
        }
        cout << count << endl;
    }
    return 0;
}

