#include <iostream>
using namespace std;
 
int main()
{
    int sum, a, b, i,t;
     
    for(t = 0 ; t < 3 ; t++) 
   {
      cin >> a >> b;
 
      sum = a + b;
      i = 1;
      while(1)
      {
          sum = sum / 10;
 
          if(sum == 0)
             break;
 
          i++;
      }
 
      cout << i << endl;
   }
 
   return 0;
}