#include <iostream>
#include <string>
using namespace std;
int main(void)
{
    int a, b;
    while(cin >> a >> b)
    {
        int c = a + b;
        int i;
        for (i = 0; 0 < c; i++)
        {
            c = c / 10;
        }
        cout << i << "\n";
    }
}

