#include<iostream>
#include<string.h>
#include<math.h>
using namespace std;

//char to int(return number)
int ctoi(char str[]){
    int num = 0;

    for(int i = 0;i < strlen(str);i++){
        if(str[i] >= '0' && str[i] <= '9'){
            num += (str[i] - '0') * pow(10, strlen(str)-1 - i);
        }
    }
    return num;
}

//get digit(return int)
int get_digit(int num){
    int digit = 0;
    while(num > 0){
        num = num/10;
        digit++;
    }
    return digit;
}

int main(){
    int a, b;
    int answer[200];
    int size = 0;

    while(std::cin >> a >> b){
        size++;
        answer[size] = get_digit(a + b);
    }
    for(int i = 0;i < size;i++){
        cout << answer[i];
    }
    return 0;
}
