#include <iostream>

using namespace std;

int main()
{
    int a;
    int b;
    int c;


    while(cin >> a >> b)
    {
        c = a+b;
        int digit=0;
        while (c>=1)
        {
            c = c/10;
            digit++;
        }

        cout << digit << endl;
    }



    return 0;
}