#include <cstdio>
#include <iostream>
using namespace std;

int keta(int a) {
  int rec = 0;
  
  do {
    rec ++;
    a /= 10;
  } while (a != 0);
  return rec;
}

main()
{
  int a, b;

  while( scanf("%d %d", &a, &b) != EOF ) {
    cout << keta(a + b) << endl;
  }
  
  return (0);
}

