#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define shosu(n) setprecision(n)
using namespace std;
int main() {
  int A, B, ans = 1;
  while (cin >> A >> B) {
    int L = A + B;
    ans = 1;
    for (int i = 0;; i++) {
      L /= 10;
      if (L == 0)
        break;
      ans++;
    }
    cout << ans << endl;
  }
}