//
// Created by Undefined on 2018/2/2.
//

#include <iostream>

using namespace std;

int main() {
    int a, b, count;
    while (cin >> a >> b) {
        count = 0;
        a += b;
        while (a) {
            a /= 10;
            count++;
        }
        cout << count << endl;
    }
    return 0;
}
