//#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
    int a,b;
    while(cin>>a>>b)
    {
        int sum=a+b,z=0;
        while(sum!=0)
        {
            z++;
            sum/=10;

        }
       cout<<z<<endl;
    }


    return 0;
}