#include <iostream>
#include <cstdio>
#include <algorithm>

using namespace std;

int main()
{
  int n, m;
  while (scanf(" %d %d ", &n, &m) == 2) {
    int N = n + m, a = 10, i;
    for (i = 0;;i++) {
      if ((N /= a) == 0) {break;}
    }
    printf("%d\n", i + 1);
  }
}