try:
    while True:
        a, b = [int(x) for x in input().strip().split(' ')]
        print(len(list(str(a+b))))
except EOFError:
    pass try:
    while True:
        a, b = [int(x) for x in input().strip().split(' ')]
        print(len(list(str(a+b))))
except EOFError:
    pass except EOFError:
    pass while True:
        a, b = [int(x) for x in input().strip().split(' ')]
        print(len(list(str(a+b)))) True int(x) for x in input().strip().split(' ') for x in input().strip().split(' ') x input().strip().split(' ') ().strip().split ().strip() ().strip () input strip split ' ' for x in input().strip().split(' ') int(x) int x a, b = [int(x) for x in input().strip().split(' ')] a [int(x) for x in input().strip().split(' ')] b print(len(list(str(a+b)))) print len(list(str(a+b))) len list(str(a+b)) list str(a+b) str a+b a b b = [int(x) for x in input().strip().split(' ')] [int(x) for x in input().strip().split(' ')] b a, b = [int(x) for x in input().strip().split(' ')] [int(x) for x in input().strip().split(' ')] a
try:
    while True:
        a, b = [int(x) for x in input().strip().split(' ')]
        print(len(list(str(a+b))))
except EOFError:
    pass
