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