while 1:
    try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break while 1:
    try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break 1 try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break except EOFError:
        break break x,y=input().split() x input().split() ().split () input split y k=int(x)+int(y) k int(x)+int(y) int(x) int x int(y) int y print(len(str(k))) print len(str(k)) len str(k) str k k=int(x)+int(y) int(x)+int(y) k x,y=input().split() input().split() x y=input().split() input().split() y
while 1:
    try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break