/*
 *  Author: mizo0203
 *  Problem: 0002
 *  Status: Accepted
 *  Submission Date: 2012/04/15 02:09:55
 */
#include <stdio.h>

int a, b;

bool input() {

  if (scanf("%d %d", &a, &b) == EOF)
    return false; // 入力の終わり

  return true;
}

int main() {
  int cnt;

  while (input()) {
    cnt = 1; // 初期化
    a += b;
    while (a /= 10)
      cnt++;
    printf("%d\n", cnt);
  }

  return 0;
}