#coding:utf-8

while True:
    try:
        i, n = map(int, raw_input(). split())
    except:
        break
    print(len(str(i + n))) while True:
    try:
        i, n = map(int, raw_input(). split())
    except:
        break
    print(len(str(i + n))) True try:
        i, n = map(int, raw_input(). split())
    except:
        break
     except:
        break
     break i, n = map(int, raw_input(). split()) i map(int, raw_input(). split()) map int raw_input(). split() (). split () raw_input split n print(len(str(i + n))) print len(str(i + n)) len str(i + n) str i + n i n n = map(int, raw_input(). split()) map(int, raw_input(). split()) n i, n = map(int, raw_input(). split()) map(int, raw_input(). split()) i
#coding:utf-8

while True:
    try:
        i, n = map(int, raw_input(). split())
    except:
        break
    print(len(str(i + n)))