#include <bits/stdc++.h>

using namespace std;

int main() {
    long long int input1, input2, temp;
    int result = 0;
    while(scanf("%11d %11d", &input1, &input2)!=EOF) {
        result = 0;
        temp = input1 + input2;
        while (temp != 0) {
            temp /= 10;
            result++;
        }
        printf("%d\n", result);
    }
}
