#include <iostream>

using namespace std;

int countDigitNumber(int num);

int main(void)
{
    int a,b;
    
    while (cin >> a >> b) {
        cout << countDigitNumber(a + b) << endl;
    }
    
    return 0;
}

int countDigitNumber(int num)
{
    int digits = 0;
    
    while (num) {
        num /= 10;
        digits++;
    }
    
    return digits;
}