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

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