import sys
import math

for line in sys.stdin:
  try:
    a, b = [int(i) for i in line.split()]
    print(int(math.log10(a + b) + 1))
  except:
    break import sys sys import math math for line in sys.stdin:
  try:
    a, b = [int(i) for i in line.split()]
    print(int(math.log10(a + b) + 1))
  except:
    break line sys.stdin sys stdin try:
    a, b = [int(i) for i in line.split()]
    print(int(math.log10(a + b) + 1))
  except:
    break except:
    break break int(i) for i in line.split() for i in line.split() i line.split() line.split line split for i in line.split() int(i) int i a, b = [int(i) for i in line.split()] a [int(i) for i in line.split()] b print(int(math.log10(a + b) + 1)) print int(math.log10(a + b) + 1) int math.log10(a + b) + 1 math.log10(a + b) math.log10 math log10 a + b a b 1 a, b = [int(i) for i in line.split()] [int(i) for i in line.split()] a b = [int(i) for i in line.split()] [int(i) for i in line.split()] b
import sys
import math

for line in sys.stdin:
  try:
    a, b = [int(i) for i in line.split()]
    print(int(math.log10(a + b) + 1))
  except:
    break