while True:
  try:
    x, y = map(int, input().split())
    print(len(str(x+y)))
  except EOFError:
    break while True:
  try:
    x, y = map(int, input().split())
    print(len(str(x+y)))
  except EOFError:
    break True try:
    x, y = map(int, input().split())
    print(len(str(x+y)))
  except EOFError:
    break except EOFError:
    break break x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y print(len(str(x+y))) print len(str(x+y)) len str(x+y) str x+y x y x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y
while True:
  try:
    x, y = map(int, input().split())
    print(len(str(x+y)))
  except EOFError:
    break