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