#include <bits/stdc++.h>
using namespace std;

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