#include <stdio.h>
#include <math.h>

int main(int argc, char** argv)
{
  int a, b;

  while (1) {
    if (fscanf(stdin, "%d %d", &a, &b) != 2)
      break;

    fprintf(stdout, "%d\n", int(log10(a + b)) + 1);
  }
}