#include <iostream>
#include <array>

using namespace std;

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

