#include <iostream>
using namespace std;

int main() {
  int a, b;
  while (cin >> a >> b) {
    int ans = 1;
    int s = a + b;
    while (s /= 10) {
      ans++;
    }
    cout << ans << endl;
  }
  return 0;
}
