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