import sys
a = []
b = []

for i in sys.stdin:
    ta, tb = i.split()
    a.append(int(ta))
    b.append(int(tb))

for i in range(len(a)):
    print len(str(a[i]+b[i])) import sys sys a = [] a [] b = [] b [] for i in sys.stdin:
    ta, tb = i.split()
    a.append(int(ta))
    b.append(int(tb)) i sys.stdin sys stdin ta, tb = i.split() ta i.split() i.split i split tb a.append(int(ta)) a.append a append int(ta) int ta b.append(int(tb)) b.append b append int(tb) int tb for i in range(len(a)):
    print len(str(a[i]+b[i])) i range(len(a)) range len(a) len a print len(str(a[i]+b[i])) len str(a[i]+b[i]) str a[i]+b[i] a[i] a i b[i] b i a = [] [] a tb = i.split() i.split() tb ta, tb = i.split() i.split() ta b = [] [] b
import sys
a = []
b = []

for i in sys.stdin:
    ta, tb = i.split()
    a.append(int(ta))
    b.append(int(tb))

for i in range(len(a)):
    print len(str(a[i]+b[i]))