#include <iostream>
using namespace std;

int main()
{
  while (true) {
    int a, b;
    
    if (!cin >> a >> b) break;
    int c = a + b;
    int i;
    for (i = 1; c != 0; i++) {
      c /= 10;
    }
    cout << i << endl;

  }
  return 0;
}