# -*-coding:utf-8-*-

def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                     
if __name__=="__main__":
    array = list(get_input())
    for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])
                        
        ans = a + b
        
        print(len(str(ans))) def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                      get_input while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                      True try:
            yield "".join(input())
        except EOFError:
            break
                      except EOFError:
            break
                      break yield "".join(input()) "".join(input()) "".join "" join input() input if __name__=="__main__":
    array = list(get_input())
    for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])
                        
        ans = a + b
        
        print(len(str(ans))) __name__=="__main__" __name__ "__main__" array = list(get_input()) array list(get_input()) list get_input() get_input for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])
                        
        ans = a + b
        
        print(len(str(ans))) i range(len(array)) range len(array) len array temp = array[i].split() temp array[i].split() [i].split [i] array i split a = int(temp[0]) a int(temp[0]) int temp[0] temp 0 b = int(temp[1]) b int(temp[1]) int temp[1] temp 1 ans = a + b ans a + b a b print(len(str(ans))) print len(str(ans)) len str(ans) str ans array = list(get_input()) list(get_input()) array def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                      def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                      get_input temp = array[i].split() array[i].split() temp ans = a + b a + b ans b = int(temp[1]) int(temp[1]) b a = int(temp[0]) int(temp[0]) a
# -*-coding:utf-8-*-

def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                     
if __name__=="__main__":
    array = list(get_input())
    for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])
                        
        ans = a + b
        
        print(len(str(ans)))