#include <iostream>
#include <array>

int main()
{
    int a;
    int b;
    int sum;
    int digit;
    while (std::cin >> a >> b) {
        sum = a + b;
        digit = 0;
        while (sum != 0) {
            sum = sum / 10;
            digit++;
        }
        std::cout << digit << std::endl;
    }
    return 0;
}