#include <iostream>
#include <algorithm>

using namespace std;

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

