try:
    s=[]
    while True:
        t = input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1])))) try:
    s=[]
    while True:
        t = input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1])))) except EOFError:
    for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1])))) for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1])))) i range(len(s)) range len(s) len s print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1])))) print len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1]))) len str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1])) str int(s[i].split(' ')[0])+int(s[i].split(' ')[1]) int(s[i].split(' ')[0]) int s[i].split(' ')[0] [i].split(' ') [i].split [i] s i split ' ' 0 int(s[i].split(' ')[1]) int s[i].split(' ')[1] [i].split(' ') [i].split [i] s i split ' ' 1 s=[] s [] while True:
        t = input()
        s.append(t) True t = input() t input() input s.append(t) s.append s append t t = input() input() t s=[] [] s
try:
    s=[]
    while True:
        t = input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1]))))