#include <bits/stdc++.h>
using namespace std;
int main() {
    int a,b;
    while( cin >> a >> b ){
        int c = a + b;
        int d = 0;
        while(c > 0 ){
            d++;
            c /= 10;
        }
        cout << d << endl;
    }
}
