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

int main() {
  int a, b;

  while(cin >> a >> b) {
    int sum = a+b;
    int ans = 1;
    while(1) {
      sum /= 10;
      if(sum == 0) break;
      ans++;
    }
    cout << ans << endl;
  }
}