#include <iostream>
int main()
{
    int a;
    int b;
    while(std::cin >> a >> b)
    {
        int number = 1;
        int data = a + b;
        for(int i = 0;;i++)
        {
            if(data / 10 != 0)
            {
                number += 1;
                data /= 10;
            }
 
            else if(data / 10 == 0)
            {
                break;
            }
        }
        std::cout << number << '\n';
    }
}