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

using namespace std;

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