try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass except:
   pass while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2)) True a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b digit=(a+b) digit a+b a b digit2=str(digit) digit2 str(digit) str digit print(len(digit2)) print len(digit2) len digit2 b=map(int,input().split()) map(int,input().split()) b digit=(a+b) a+b digit a,b=map(int,input().split()) map(int,input().split()) a digit2=str(digit) str(digit) digit2
try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass