#include<iostream>
using namespace std;

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