#include<cstdio>
using namespace std;
int main()
{
    int a,b,sum,cnt;
    while(scanf("%d %d", &a, &b)==2)
    {
        sum=a+b;
        cnt=0;
        while(sum>0)
        {
            sum/=10;
            cnt++;
        }
        printf("%d\n",cnt);
    }
    return 0;
}