#include <iostream>
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  int sum = a + b;
  int count = 1;
  while(true) {
    sum /= 10;
    count++;
    if (sum < 10) break;
  }
  cout << count << endl;
  return 0;
}