#include <iostream>                                             
#include <cmath>                                                
using namespace std;                                            
                                                                
int main() {                                                    
  int a, b;                                                     
  while (cin >> a >> b) {                                       
    int Digit = log10(a+b)+1;                                  
    cout << Digit << endl;                                      
  }                                                             
  return 0;                                                     
}          