#include<bits/stdc++.h>
using namespace std;


int main(){
    long a, b, sum,r,count=0;

    while(scanf("%d %d",&a,&b)!=EOF){
        sum=a+b;
        //printf("%d\n",sum);

        while(sum){
            r=sum%10;
            count++;
            sum=sum/10;
        }
        printf("%d\n",count);
    }



return 0;
}

