#include <iostream>
using namespace std;

int main() {
    long a;
    long b;

    while(cin >> a >> b) {
        long c = a + b;

        int result = 0;
        do {
            c /= 10;
            result++;
        } while(c != 0);

        cout << result << endl;
    }

    return 0;
}
