/* Digit Number */
#include <iostream>
using namespace std;

int main() {
  int a, b;
  while (cin >> a >> b) {
    int n = a + b;
    int i = 0;
    while(n != 0) {
      n /= 10;
      i++;
    }
    cout << i << endl;
  }

  return 0;
}
