#include <iostream>
#include <cmath>

int main(int argc, const char *argv[]) {
    for (int a, b; std::cin >> a >> b; ) {
        std::cout << (int)(std::log10((double)a + b) + 1) << std::endl;
    }
    return 0;
}