#include <iostream>
using namespace std;

#define INPUTSIZE 10

int main() {
    int a, b, sum, digit;

    while (cin >> a >> b) {
        sum = a + b;

        digit = 0;
        while (sum > 0) {
            sum /= 10;
            digit++;
        }
        cout << digit << endl;
    }

    return 0;
}