#include<cstdio>

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