import sys
import math

for line in sys.stdin:
  a = line.split()
  print int(math.log10(int(a[0]) + int(a[1]))) + 1 import sys sys import math math for line in sys.stdin:
  a = line.split()
  print int(math.log10(int(a[0]) + int(a[1]))) + 1 line sys.stdin sys stdin a = line.split() a line.split() line.split line split print int(math.log10(int(a[0]) + int(a[1]))) + 1 int(math.log10(int(a[0]) + int(a[1]))) int math.log10(int(a[0]) + int(a[1])) math.log10 math log10 int(a[0]) + int(a[1]) int(a[0]) int a[0] a 0 int(a[1]) int a[1] a 1 1 a = line.split() line.split() a
import sys
import math

for line in sys.stdin:
  a = line.split()
  print int(math.log10(int(a[0]) + int(a[1]))) + 1