#include <iostream>
#include <math.h>
#include <algorithm>
using namespace std;
int main()
{
    int num1,num2;
    int count =0;
   
  
                          cin>>num1;
                          cin>>num2;
                          int sum = num1+num2;
                          while(sum>9)
            {
              count =count+1;
               sum = sum/10;
              
            }
            cout << count+1 <<endl;
            return 0;
            
    
}