#include <iostream>
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  int count = 0;
  unsigned int ans = a + b;
  
  while (ans > 0) {
    count++;
    ans /= 10;
  }

  // cout << a << "," << b << "," << count << endl;
  cout << count << endl;
  return 0;
}