import sys

for line in iter(sys.stdin.readline, ""):
  sp = line.rstrip().split(" ")
  sum = int(sp[0])+int(sp[1])
  print len(str(sum)) import sys sys for line in iter(sys.stdin.readline, ""):
  sp = line.rstrip().split(" ")
  sum = int(sp[0])+int(sp[1])
  print len(str(sum)) line iter(sys.stdin.readline, "") iter sys.stdin.readline sys.stdin sys stdin readline "" sp = line.rstrip().split(" ") sp line.rstrip().split(" ") line.rstrip().split line.rstrip() line.rstrip line rstrip split " " sum = int(sp[0])+int(sp[1]) sum int(sp[0])+int(sp[1]) int(sp[0]) int sp[0] sp 0 int(sp[1]) int sp[1] sp 1 print len(str(sum)) len str(sum) str sum sum = int(sp[0])+int(sp[1]) int(sp[0])+int(sp[1]) sum sp = line.rstrip().split(" ") line.rstrip().split(" ") sp
import sys

for line in iter(sys.stdin.readline, ""):
  sp = line.rstrip().split(" ")
  sum = int(sp[0])+int(sp[1])
  print len(str(sum))