#include<iostream>
using namespace std;

int main() {
    int a, b, sum;
    while (cin >> a >> b) {
        int divisor = 10, digit = 1;
        sum = a + b;

        do {
            if ((sum / divisor) != 0) {
                digit++;
                divisor *= 10;
            }
            else if ((sum / divisor) == 0)
                break;
        } while (1);

        cout << digit << endl;
    }
    return 0;
}
