import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    inl=n.split()
    num=int(inl[0])+int(inl[1])
    l=list(str(num))
    time=0
    for i in l:
        time+=1
    print time import sys sys a = [] a [] for line in sys.stdin:
    a.append(line) line sys.stdin sys stdin a.append(line) a.append a append line for n in a:
    inl=n.split()
    num=int(inl[0])+int(inl[1])
    l=list(str(num))
    time=0
    for i in l:
        time+=1
    print time n a inl=n.split() inl n.split() n.split n split num=int(inl[0])+int(inl[1]) num int(inl[0])+int(inl[1]) int(inl[0]) int inl[0] inl 0 int(inl[1]) int inl[1] inl 1 l=list(str(num)) l list(str(num)) list str(num) str num time=0 time 0 for i in l:
        time+=1
     i l time+=1 time 1 print num=int(inl[0])+int(inl[1]) int(inl[0])+int(inl[1]) num l=list(str(num)) list(str(num)) l inl=n.split() n.split() inl time+=1 1 time a = [] [] a time=0 0 time
import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    inl=n.split()
    num=int(inl[0])+int(inl[1])
    l=list(str(num))
    time=0
    for i in l:
        time+=1
    print time