#include <cstdio>
using namespace std;

int main() {
  int a, b;
  while (~scanf("%d %d", &a, &b)) {
    int sum, ans = 0;
    sum = a + b;
    while (sum) {
      sum /= 10;
      ++ans;
    }
    printf("%d\n", ans);
  }
}
