#include <stdio.h>

int main()
{
    int a, b, n, result;
    
    while (scanf("%d %d", &a, &b) != EOF) {
        n = a + b;
        result = 0;
        
        while (n != 0) {
            n /= 10;
            result++;
        }
        
        printf("%d\n", result);
    }
    
    return 0;
}