#include <iostream>

using namespace std;

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

    while (cin >> a >> b) {
        c = a + b;
        i = 0;
        while (c > 0) {
            c /= 10;
            i++;
        }
        cout << i << endl;
    }

    return 0;
}