#include <cstdio>
#include <algorithm>

using namespace std;

int count_digit(int x) {
  int cnt = 1;
  while (x >= 10) {
    cnt++;
    x /= 10;
  }
  return cnt;
}

int main() {
  int a, b;
  while (scanf("%d %d", &a, &b) == 2) {
    printf("%d\n", count_digit(a+b));
  }
  return 0;
}