#include <iostream>
using namespace std;
int main ()
{
    int a,b;
    while (cin >> a >> b)
    {
        int sum = a+b,count = 0;
        while (sum != 0)
        {
            count ++;
            sum /= 10;
        }
        cout << count << endl;
    }
    return 0;
}