#include <iostream>
using namespace std;

int main() {
  int x, y, count;
  cin >> x >> y;

  char ch[] = (char)(x + y);

  for(int i = 0; ch[i] == '\0'; ++i) {
    ++count;
  }
  cout << count << endl;
}