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