#include<iostream>
using namespace std;
  
int main(){
    int a, b;
    int sum, digit;

    while(cin >> a >> b){
        sum = a + b;
        digit = 0;
        while(sum){
            sum = sum \ 10;
            digit++;
        };
    cout << digit << endl;
    };
    return 0;
}
