#include<iostream>

int main(){
        int a,b;
        while(std::cin >> a >> b){
                int c=a+b,d=1;
                while(c>=10){
                        c = c / 10;
                        d++;
                }
                std::cout << d << std::endl;
        }
        return 0;
}