#include <iostream>
#include <cmath>

int main()
{
    int a, b;
    int l;

    while (std::cin >> a >> b)
    {
        l = log10(a + b);
        std::cout << l + 1 << std::endl;
    }

    return 0;
}

