#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;


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

