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

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