#include<iostream>
#include<stdio.h>
using namespace std;
int main(){

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

    }

    return 0;
}

