#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<string>
#include<algorithm>
#include<iostream>
#include<stack>
#include<queue>
#include<vector>
#include<map>
#include<set>
using namespace std;
int reshan(int sum)
{
    int i=0;
    while(sum!=0)
    {
        i++;
        sum=sum/10;
    }
    return i;5
}
int main ()
{
    int in1,in2;
    int i;
    while (scanf ("%d %d",&in1,&in2)!=EOF)
    {
        int sum=in1+in2;
        int z=reshan(sum);
        printf ("%d\n",z);
    }
    return 0;
}