import sys
a=[]
for i in sys.stdin:
    a.append(map(int,i.split()))
for i in a:
    print(str(len(str(i[0]+i[1])))) import sys sys a=[] a [] for i in sys.stdin:
    a.append(map(int,i.split())) i sys.stdin sys stdin a.append(map(int,i.split())) a.append a append map(int,i.split()) map int i.split() i.split i split for i in a:
    print(str(len(str(i[0]+i[1])))) i a print(str(len(str(i[0]+i[1])))) print str(len(str(i[0]+i[1]))) str len(str(i[0]+i[1])) len str(i[0]+i[1]) str i[0]+i[1] i[0] i 0 i[1] i 1 a=[] [] a
import sys
a=[]
for i in sys.stdin:
    a.append(map(int,i.split()))
for i in a:
    print(str(len(str(i[0]+i[1]))))