listal=[]
while True:
    try:
        listal.append(input())
    except EOFError:
        break
tyon=[]
for i in listal:
    lista=i.split()
    tyon.append(len(str(int(lista[0])+int(lista[1]))))
for i in tyon:
    print(i)
 listal=[] listal [] while True:
    try:
        listal.append(input())
    except EOFError:
        break True try:
        listal.append(input())
    except EOFError:
        break except EOFError:
        break break listal.append(input()) listal.append listal append input() input tyon=[] tyon [] for i in listal:
    lista=i.split()
    tyon.append(len(str(int(lista[0])+int(lista[1])))) i listal lista=i.split() lista i.split() i.split i split tyon.append(len(str(int(lista[0])+int(lista[1])))) tyon.append tyon append len(str(int(lista[0])+int(lista[1]))) len str(int(lista[0])+int(lista[1])) str int(lista[0])+int(lista[1]) int(lista[0]) int lista[0] lista 0 int(lista[1]) int lista[1] lista 1 for i in tyon:
    print(i) i tyon print(i) print i listal=[] [] listal tyon=[] [] tyon lista=i.split() i.split() lista
listal=[]
while True:
    try:
        listal.append(input())
    except EOFError:
        break
tyon=[]
for i in listal:
    lista=i.split()
    tyon.append(len(str(int(lista[0])+int(lista[1]))))
for i in tyon:
    print(i)

