#include <bits/stdc++.h>


int main()
{
    int a, b;
    int count, tmp;

    while (std::scanf("%d %d", &a, &b) != EOF) {

        count = 0;
        tmp= a + b;

        while(tmp != 0) {
            count++;
            tmp /= 10;
        }

        std::cout << count << std::endl;
    }

    return 0;
}

