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