#include <iostream>

using namespace std;

int main()
{
    int x,y;
    int result;
    cin >> x;
    cin >> y;
    
    result = x + y;
    

  int count = 0;
  while(result)
{
   result /= 10;
   ++count;

}
 cout << count << endl;   
     
    return 0;
    
}