#include <iostream>
#include <queue>
#include <cmath>

using namespace std;

int main ()
{
    int i, j, d;
    while (cin >> i >> j) {
        cout << (d = (int)log10(i + j) + 1) << endl;
    }
    return 0;
}