#include<iostream>

using namespace std;

 int main(){
  int a,b,n,sum;
  int x[200];

  n = 0;
  
  while(cin >> a >> b){
  
   sum = a + b;
   x[n] = 0;
   
   for(int i = sum; i >= 1; i/10){
    x[n]++;
   }
    
   cout << x[n] << endl;
    
   n++;
  }
  
 return 0;
}