#include <iostream>
#include <cmath>

int main()
{
    while (true) {
        int a, b;
        std::cin >> a >> b;
        if (std::cin.eof()) break;
        std::cout << floor(log10((double)a + b)) + 1 << std::endl;
    }
}