#include <iostream>
#include <algorithm>

using namespace std;

int main() {
  int a, b;

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