#include<cstdio>
#include<algorithm>
#include<cmath>

using namespace std;

int main(){
        double a, b;
        int i, c;
        scanf("%lf%lf", &a, &b);
        c = a + b;
        for(i = 0; c != 0; i++){
                c /= 10;
        }
        printf("%d\n", i);
        return 0;
}
 