#include <iostream>

int main() {
  int a, b;
  int num, sum;
  while (std::cin >> a >> b) {
    num = 1;
    sum = a + b;
    while ((sum /=10) != 0)
      num += 1;
    std::cout << num << std::endl;

  }
  return 0;
}