#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;

int countDigit(double num)
{
    return log10(num) + 1;
}

int main()
{
    double a, b;
    while(cin >> a >> b)
    {
        cout << countDigit(a + b) << endl;
    }
    return EXIT_SUCCESS;
}