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