#include <iostream>
using namespace std;

int main()
{
 int a,b;
 int count;
 int wa;
 while(cin >> a&&cin >> b){
  count = 1;
  wa = a + b;
  while((wa/=10) != 0){
   count++;
  }
  cout << count << endl;
 }
 return 0;
}