#include<stdio.h>

int main()
{
    long long a,b,c;
    while(scanf("%lld%lld",&a,&b)==2)
    {
        c=a+b;
        int coun=0;
        while(c>0)
        {

            coun++;
            c/=10;
        }
        printf("%lld\n",coun);
    }
    return 0;
}