def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s

try:
    while True:
        a, b = list(map(int, input().split()))
        print(compute_digits_num(a,b))
except:
    pass def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s compute_digits_num c = a + b c a + b a b s = 0 s 0 for c in str(c):
        s += 1
     c str(c) str c s += 1 s 1 return s s a a b b try:
    while True:
        a, b = list(map(int, input().split()))
        print(compute_digits_num(a,b))
except:
    pass except:
    pass while True:
        a, b = list(map(int, input().split()))
        print(compute_digits_num(a,b)) True a, b = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b print(compute_digits_num(a,b)) print compute_digits_num(a,b) compute_digits_num a b def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s compute_digits_num a, b = list(map(int, input().split())) list(map(int, input().split())) a b = list(map(int, input().split())) list(map(int, input().split())) b
def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s

try:
    while True:
        a, b = list(map(int, input().split()))
        print(compute_digits_num(a,b))
except:
    pass
