#include <iostream>
#include <cstdio>
#include <cstdlib>

using namespace std;

int main()
{
    int a,b,count=0,sum=0;
    while(scanf("%d%d",&a,&b)!=EOF){
        sum=a+b;
        while(sum!=0){
            sum=sum/10;
            count++;
        }
        printf("%d",count);
    }
    return 0;
}