for i in range(200):
    
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        pass for i in range(200):
    
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        pass i range(200) range 200 try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        pass except:
        pass a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b b=map(int,input().split()) map(int,input().split()) b a,b=map(int,input().split()) map(int,input().split()) a
for i in range(200):
    
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        pass
