while True:
   try :
      a, b=[int(x) for x in input().split()]
      ans = a+b
      ans = str(ans)
      size = len(ans)
      print(size)
   except EOFError:
      break while True:
   try :
      a, b=[int(x) for x in input().split()]
      ans = a+b
      ans = str(ans)
      size = len(ans)
      print(size)
   except EOFError:
      break True try :
      a, b=[int(x) for x in input().split()]
      ans = a+b
      ans = str(ans)
      size = len(ans)
      print(size)
   except EOFError:
      break except EOFError:
      break break int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a, b=[int(x) for x in input().split()] a [int(x) for x in input().split()] b ans = a+b ans a+b a b ans = str(ans) ans str(ans) str ans size = len(ans) size len(ans) len ans print(size) print size ans = str(ans) str(ans) ans b=[int(x) for x in input().split()] [int(x) for x in input().split()] b size = len(ans) len(ans) size a, b=[int(x) for x in input().split()] [int(x) for x in input().split()] a ans = a+b a+b ans
while True:
   try :
      a, b=[int(x) for x in input().split()]
      ans = a+b
      ans = str(ans)
      size = len(ans)
      print(size)
   except EOFError:
      break
