#include<stdio.h>
int main()
{
    int a,b,c;
    int i = 1,z;
    scanf("%d %d",&a,&b);
    c = a + b;

    while(1)
    {
        c = c / 10;
        i++;
        if(c < 10)break;
    }
    printf("%d\n",i);
    return 0;
}