def digits(x):
    i=0
    while (x>0):
        x/=10
        i+=1
    return i

while True:
    try:
        line=raw_input()
        (a,b)=line.split()
        (a,b)=map(int,(a,b))
        print digits(a+b)
    except EOFError: break def digits(x):
    i=0
    while (x>0):
        x/=10
        i+=1
    return i digits i=0 i 0 while (x>0):
        x/=10
        i+=1
     x>0 x 0 x/=10 x 10 i+=1 i 1 return i i x x while True:
    try:
        line=raw_input()
        (a,b)=line.split()
        (a,b)=map(int,(a,b))
        print digits(a+b)
    except EOFError: break True try:
        line=raw_input()
        (a,b)=line.split()
        (a,b)=map(int,(a,b))
        print digits(a+b)
    except EOFError: break except EOFError: break line=raw_input() line raw_input() raw_input (a,b)=line.split() (a,b) a b line.split() line.split line split (a,b)=map(int,(a,b)) (a,b) a b map(int,(a,b)) map int (a,b) a b print digits(a+b) digits a+b a b def digits(x):
    i=0
    while (x>0):
        x/=10
        i+=1
    return i def digits(x):
    i=0
    while (x>0):
        x/=10
        i+=1
    return i digits line=raw_input() raw_input() line
def digits(x):
    i=0
    while (x>0):
        x/=10
        i+=1
    return i

while True:
    try:
        line=raw_input()
        (a,b)=line.split()
        (a,b)=map(int,(a,b))
        print digits(a+b)
    except EOFError: break