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