l = list(map(int, input().split()))

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break l = list(map(int, input().split())) l list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break l != [] l [] try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break except:
        break break length = len(str(l[0]+l[1])) length len(str(l[0]+l[1])) len str(l[0]+l[1]) str l[0]+l[1] l[0] l 0 l[1] l 1 print(length) print length l = list(map(int, input().split())) l list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split length = len(str(l[0]+l[1])) len(str(l[0]+l[1])) length l = list(map(int, input().split())) list(map(int, input().split())) l l = list(map(int, input().split())) list(map(int, input().split())) l
l = list(map(int, input().split()))

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break
