#include <bits/stdc++.h>
using namespace std;

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

