#include<iostream>
#include <cstdio>
#include<cmath>
#include<vector>
#include<algorithm>

using namespace std;

////Nayeem Shahriar Joy,Applied Physics &Electronic Engineering,University of Rajshahi.

int main()

{
   int a,b,d;
   while(cin>>a>>b)

   {
       d=a+b;
       int count=0;
       while(d!=0)
       {
           d=d/10;
           count++;
       }
       cout<<count<<endl;
   }
   return 0;
}