def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break

if __name__ == '__main__':
    a = list(get_input())

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 def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break get_input while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break True try:
            yield ''.join(raw_input())
        except EOFError:
            break except EOFError:
            break break yield ''.join(raw_input()) ''.join(raw_input()) ''.join '' join raw_input() raw_input if __name__ == '__main__':
    a = list(get_input()) __name__ == '__main__' __name__ '__main__' a = list(get_input()) a list(get_input()) list get_input() get_input 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 def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break get_input num=int(inl[0])+int(inl[1]) int(inl[0])+int(inl[1]) num a = list(get_input()) list(get_input()) a l=list(str(num)) list(str(num)) l time=0 0 time time+=1 1 time inl=n.split() n.split() inl
def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break

if __name__ == '__main__':
    a = list(get_input())

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