#include<stdio.h>
int main()
{
    long long a,b;
    while(scanf("%lld %lld",&a,&b)==2)
    {
        long long c=0,s=0;
        c=a+b;
        while(c!=0)
        {
          c/=10;
          s++;
        }
        printf("%lld\n",s);
    }
}