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

int main()
{
  int a, b;
  while (scanf("%d %d", &a, &b) != EOF) {
    int ans = a + b;
    string s = to_string(ans);
    cout << s.size() << endl;
  }
}

