#include <iostream>
using namespace std;

int main() {
    int ch, a, b, sum;
    do {
        cin>>a>>b;
        sum = a + b;
        int count;
        for (count = 0; sum != 0; count++) {
            sum /= 10;
        }
        cout<<count<<endl;
        ch = getchar();
    }while (ch != EOF);
    return 0;
}