#include <iostream>
using namespace	std;

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

  return 0;
}

