#include <iostream>
using namespace std;

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