#include<iostream>
#include<cstdio>
#include<string>
int main(){
    int a, b;
    while(~scanf("%d%d", &a, &b)){
        std::string s = std::to_string(a+b);
        printf("%d\n", s.length());
    }
}
