#include <iostream>
using namespace std;

int main()
{
  int a, b, c, n;
  while(cin >> a){
  cin >> b;
  c = a + b;
  n = 0;
  while(c != 0){
    n++;
    c /= 10;
  }
  cout << n << "\n";
}

return 0;
}