#include<iostream>

using namespace std;

int main(){
 int a,b,c,d = 0;
 cin >> a >> b;
 while(!cin.eof()){
  c = a + b;
   for(;c != 0;++d){  
   c /= 10;
   }  
  cout << d << endl; 
  d = 0;
  cin >> a >> b;
  }
 return 0;
}

