#include <bits/stdc++.h>

using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b, tmp, ans;
  while (cin >> a >> b) {
    tmp = a + b;
    ans = 0;
    while (true) {
      ans++;
      if (tmp / 10 <= 0) {
        cout << ans << '\n';
        break;
      }
      tmp /= 10;
    }
  }
  return 0;
}

