line = []
try:
    while True:
        a,b = input().split(" ")
        d = int(a) + int(b)
        list = [c for c in str(d)]
        line.append(len(list))
except EOFError:
    for e in range(0,len(line)):
        print(line[e]) line = [] line [] try:
    while True:
        a,b = input().split(" ")
        d = int(a) + int(b)
        list = [c for c in str(d)]
        line.append(len(list))
except EOFError:
    for e in range(0,len(line)):
        print(line[e]) except EOFError:
    for e in range(0,len(line)):
        print(line[e]) for e in range(0,len(line)):
        print(line[e]) e range(0,len(line)) range 0 len(line) len line print(line[e]) print line[e] line e while True:
        a,b = input().split(" ")
        d = int(a) + int(b)
        list = [c for c in str(d)]
        line.append(len(list)) True a,b = input().split(" ") a input().split(" ") ().split () input split " " b d = int(a) + int(b) d int(a) + int(b) int(a) int a int(b) int b c for c in str(d) for c in str(d) c str(d) str d for c in str(d) c list = [c for c in str(d)] list [c for c in str(d)] line.append(len(list)) line.append line append len(list) len list line = [] [] line b = input().split(" ") input().split(" ") b list = [c for c in str(d)] [c for c in str(d)] list d = int(a) + int(b) int(a) + int(b) d a,b = input().split(" ") input().split(" ") a
line = []
try:
    while True:
        a,b = input().split(" ")
        d = int(a) + int(b)
        list = [c for c in str(d)]
        line.append(len(list))
except EOFError:
    for e in range(0,len(line)):
        print(line[e])
