#include <iostream>
using namespace std;
int main() {
  int a, b;
  while (cin >> a >> b) {
    int sum = a + b;
    int k = 1;
    for (; (sum /= 10) > 0; k++) {}
    cout << k << endl;
  }
  return 0;
}