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