#include <iostream>
#include <string>
using namespace std;

int main()
{
  string result;
  int x,x1;
  cin >> x >> x1;
  x += x1;
  result = to_string(x);
  cout << result.length() << endl;
  return 0;
}