l = []
while True:
    try:
        (a,b) = input().split(" ")
        l.append((int(a) + int(b)))
    except:
        break  
for i in l:
    print(len(str(i))) l = [] l [] while True:
    try:
        (a,b) = input().split(" ")
        l.append((int(a) + int(b)))
    except:
        break   True try:
        (a,b) = input().split(" ")
        l.append((int(a) + int(b)))
    except:
        break   except:
        break   break (a,b) = input().split(" ") (a,b) a b input().split(" ") ().split () input split " " l.append((int(a) + int(b))) l.append l append int(a) + int(b) int(a) int a int(b) int b for i in l:
    print(len(str(i))) i l print(len(str(i))) print len(str(i)) len str(i) str i l = [] [] l
l = []
while True:
    try:
        (a,b) = input().split(" ")
        l.append((int(a) + int(b)))
    except:
        break  
for i in l:
    print(len(str(i)))