#include <iostream>

using namespace std;

int main() {
    int a, b;
    while(true) {
        cin >> a;
        if(cin.eof()) break;
        cin >> b;
        if(cin.eof()) break;
        int ans=0;
        int temp=a+b;
        while(temp>0) {
            temp/=10;
            ++ans;
        }
        cout << ans << endl;
    }

    return 0;
}
