#include<iostream>
using namespace std;

int main(){
    int a, b, result;
    while (cin >> a >> b) {
        int sum = a + b;
        while (true) {
            sum = sum / 10;
            result++;
            if (sum == 0) {
                cout << result << endl;
                break;
            }
        }
    }

    return 0;
}