while 1:
    try:
        i = list(map(int, input().split()))
        print(len(str(i[0]+i[1])))
    except:
        break while 1:
    try:
        i = list(map(int, input().split()))
        print(len(str(i[0]+i[1])))
    except:
        break 1 try:
        i = list(map(int, input().split()))
        print(len(str(i[0]+i[1])))
    except:
        break except:
        break break i = list(map(int, input().split())) i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(len(str(i[0]+i[1]))) print len(str(i[0]+i[1])) len str(i[0]+i[1]) str i[0]+i[1] i[0] i 0 i[1] i 1 i = list(map(int, input().split())) list(map(int, input().split())) i
while 1:
    try:
        i = list(map(int, input().split()))
        print(len(str(i[0]+i[1])))
    except:
        break