while True:
    try:a,b=map(int,input().split())
    except:break
    c=a+b
    ans=0

    while c>9:
        c=c//10
        ans+=1
    ans+=1
    print(ans) while True:
    try:a,b=map(int,input().split())
    except:break
    c=a+b
    ans=0

    while c>9:
        c=c//10
        ans+=1
    ans+=1
    print(ans) True try:a,b=map(int,input().split())
    except:break
     except:break
     c=a+b c a+b a b ans=0 ans 0 while c>9:
        c=c//10
        ans+=1
     c>9 c 9 c=c//10 c c//10 c 10 ans+=1 ans 1 ans+=1 ans 1 print(ans) print ans c=a+b a+b c ans+=1 1 ans c=c//10 c//10 c ans+=1 1 ans ans=0 0 ans
while True:
    try:a,b=map(int,input().split())
    except:break
    c=a+b
    ans=0

    while c>9:
        c=c//10
        ans+=1
    ans+=1
    print(ans)
