#include<stdio.h>
int main()
{
    int i,n,a,b,sum,count=0;
    scanf("%d %d",&a,&b);
    sum=a+b;
    while(sum!= 0)
    {
        sum/= 10;
        ++count;
    }
    printf("%d\n", count);
    return 0;
}