#include<iostream>
#include<string>
#include <stdlib.h>
using namespace std;
int main()
{
    long a, b, sum;
    while (!cin.eof())
    {
        int k=0;
        cin>>a>>b;
        sum=a+b;
        while(sum>9)
        {
            sum=sum/10;
            k++;
        }

        cout<<k+1<<endl;

    }
    return 0;
}