l = []
while True:
    try:
        s = raw_input()
    except:
        break
    l.append(len(str(sum(map(int, s.split())))))
for i in l:
    print i l = [] l [] while True:
    try:
        s = raw_input()
    except:
        break
    l.append(len(str(sum(map(int, s.split()))))) True try:
        s = raw_input()
    except:
        break
     except:
        break
     break s = raw_input() s raw_input() raw_input l.append(len(str(sum(map(int, s.split()))))) l.append l append len(str(sum(map(int, s.split())))) len str(sum(map(int, s.split()))) str sum(map(int, s.split())) sum map(int, s.split()) map int s.split() s.split s split for i in l:
    print i i l print l = [] [] l s = raw_input() raw_input() s
l = []
while True:
    try:
        s = raw_input()
    except:
        break
    l.append(len(str(sum(map(int, s.split())))))
for i in l:
    print i