import sys

for line in sys.stdin:
  x, y = map(int, line.split())
  print(len(str(x+y))) import sys sys for line in sys.stdin:
  x, y = map(int, line.split())
  print(len(str(x+y))) line sys.stdin sys stdin x, y = map(int, line.split()) x map(int, line.split()) map int line.split() line.split line 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, line.split()) map(int, line.split()) x y = map(int, line.split()) map(int, line.split()) y
import sys

for line in sys.stdin:
  x, y = map(int, line.split())
  print(len(str(x+y)))