#include "bits/stdc++.h"
using namespace std;
int main(){
    int a, b;
    int sum;
    string ans;
    while(cin >> a >> b){
        sum = a + b;
        ans = to_string(sum);
        cout << ans.size() << endl;
    }     
    return 0;
}