rig=[int(i) for i in input().split(" ")]
while True:
    ke=rig[0]+rig[1]
    ans=1
    count=10
    while True:
        if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10
    try:rig=[int(i) for i in input().split(" ")]
    except:break int(i) for i in input().split(" ") for i in input().split(" ") i input().split(" ") ().split () input split " " for i in input().split(" ") int(i) int i rig=[int(i) for i in input().split(" ")] rig [int(i) for i in input().split(" ")] while True:
    ke=rig[0]+rig[1]
    ans=1
    count=10
    while True:
        if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10
    try:rig=[int(i) for i in input().split(" ")]
    except:break True ke=rig[0]+rig[1] ke rig[0]+rig[1] rig[0] rig 0 rig[1] rig 1 ans=1 ans 1 count=10 count 10 while True:
        if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10
     True if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10
     ke<count ke count print(ans) print ans break ans+=1 ans 1 count=count*10 count count*10 count 10 int(i) for i in input().split(" ") for i in input().split(" ") i input().split(" ") ().split () input split " " for i in input().split(" ") int(i) int i try:rig=[int(i) for i in input().split(" ")]
    except:break except:break rig=[int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] rig ke=rig[0]+rig[1] rig[0]+rig[1] ke count=count*10 count*10 count count=10 10 count ans=1 1 ans ans+=1 1 ans
rig=[int(i) for i in input().split(" ")]
while True:
    ke=rig[0]+rig[1]
    ans=1
    count=10
    while True:
        if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10
    try:rig=[int(i) for i in input().split(" ")]
    except:break