import math

while 1:
  try:
    a,b=map(int, input().split())
    print(len(format(a+b)))

  except:
    break import math math while 1:
  try:
    a,b=map(int, input().split())
    print(len(format(a+b)))

  except:
    break 1 try:
    a,b=map(int, input().split())
    print(len(format(a+b)))

  except:
    break except:
    break break a,b=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b print(len(format(a+b))) print len(format(a+b)) len format(a+b) format a+b a b a,b=map(int, input().split()) map(int, input().split()) a b=map(int, input().split()) map(int, input().split()) b
import math

while 1:
  try:
    a,b=map(int, input().split())
    print(len(format(a+b)))

  except:
    break
