# AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u

while True:
    try:
        a = list(map(int, input().split()))
        print(len(str(a[0] + a[1])))
    except EOFError:
        break while True:
    try:
        a = list(map(int, input().split()))
        print(len(str(a[0] + a[1])))
    except EOFError:
        break True try:
        a = list(map(int, input().split()))
        print(len(str(a[0] + a[1])))
    except EOFError:
        break except EOFError:
        break break a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(len(str(a[0] + a[1]))) print len(str(a[0] + a[1])) len str(a[0] + a[1]) str a[0] + a[1] a[0] a 0 a[1] a 1 a = list(map(int, input().split())) list(map(int, input().split())) a
# AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u

while True:
    try:
        a = list(map(int, input().split()))
        print(len(str(a[0] + a[1])))
    except EOFError:
        break
