import sys

for i in sys.stdin:
  a, b = map(int, i.split())
  print len(str(a+b)) import sys sys for i in sys.stdin:
  a, b = map(int, i.split())
  print len(str(a+b)) i sys.stdin sys stdin a, b = map(int, i.split()) a map(int, i.split()) map int i.split() i.split i split b print len(str(a+b)) len str(a+b) str a+b a b b = map(int, i.split()) map(int, i.split()) b a, b = map(int, i.split()) map(int, i.split()) a
import sys

for i in sys.stdin:
  a, b = map(int, i.split())
  print len(str(a+b))