#include <iostream>

using namespace std;

int a, b, ans;

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