while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    count=1
    k=a+b
    while k>=10:
        k//=10
        count+=1
    print(count) while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    count=1
    k=a+b
    while k>=10:
        k//=10
        count+=1
    print(count) True try:
        a, b = map(int, input().split())
    except EOFError:
        break
     except EOFError:
        break
     break a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b count=1 count 1 k=a+b k a+b a b while k>=10:
        k//=10
        count+=1
     k>=10 k 10 k//=10 k 10 count+=1 count 1 print(count) print count a, b = map(int, input().split()) map(int, input().split()) a count+=1 1 count k//=10 10 k b = map(int, input().split()) map(int, input().split()) b count=1 1 count k=a+b a+b k
while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    count=1
    k=a+b
    while k>=10:
        k//=10
        count+=1
    print(count)