include <stdio.h>
#define MAX 200

int main(void) {
        int i,count;
        int arr[3][MAX];
        int dig[MAX];

        // input                                                                
        for (i=0; ; i++) {
                if(scanf("%d %d", &arr[0][i], &arr[1][i]) == EOF) break;
                arr[2][i] = arr[0][i] + arr[1][i];
                count++;
        }

        // calc                                                                 
        for (i=0; i < count; ++i){
                while (1) {
                        arr[2][i] /= 10;
                        dig[i]++;
                        if(arr[2][i] == 0) break;
                }
        }


        //output                                                                
        for (i = 0; i < count; ++i)     {
                printf("%d\n", dig[i]);
        }

        return 0;
}