while True:

    try:

        print((len(str(sum(map(int, input().split()))))))

    except EOFError:

        break
import sys

 

[print(len(str(y[0] + y[1]))) for y in [[int(z) for z in x.split()] for x in sys.stdin]]

while True:
    try:
        print((len(str(sum(map(int, input().split()))))))
    except EOFError:
        break

import sys

[print(len(str(y[0] + y[1]))) for y in [[int(z) for z in x.split()] for x in sys.stdin]]

-while True: -    try: -        print((len(str(sum(map(int, input().split())))))) -    except EOFError: -        break +import sys + +[print(len(str(y[0] + y[1]))) for y in [[int(z) for z in x.split()] for x in sys.stdin]]