#include <iostream>

int Count(int value)
{
    int count = 1;
    while (value >= 10) {
        value /= 10;
        count++;
    }
    return count;
}

int main()
{
    int a, b;
    while (std::cin >> a >> b) {
        std::cout << Count(a + b) << std::endl;
    }

    return 0;
}

