while True:
    try:
        x = input()
        a, b = list(map(int, x.split()))
        c = a + b
        print(len(str(c)))
    except:
        break while True:
    try:
        x = input()
        a, b = list(map(int, x.split()))
        c = a + b
        print(len(str(c)))
    except:
        break True try:
        x = input()
        a, b = list(map(int, x.split()))
        c = a + b
        print(len(str(c)))
    except:
        break except:
        break break x = input() x input() input a, b = list(map(int, x.split())) a list(map(int, x.split())) list map(int, x.split()) map int x.split() x.split x split b c = a + b c a + b a b print(len(str(c))) print len(str(c)) len str(c) str c a, b = list(map(int, x.split())) list(map(int, x.split())) a b = list(map(int, x.split())) list(map(int, x.split())) b x = input() input() x c = a + b a + b c
while True:
    try:
        x = input()
        a, b = list(map(int, x.split()))
        c = a + b
        print(len(str(c)))
    except:
        break