while 1:
    try:
        print(len(str(sum(map(int, input().split())))))
    except:
        break

 while 1:
    try:
        print(len(str(sum(map(int, input().split())))))
    except:
        break 1 try:
        print(len(str(sum(map(int, input().split())))))
    except:
        break except:
        break break print(len(str(sum(map(int, input().split()))))) print len(str(sum(map(int, input().split())))) len str(sum(map(int, input().split()))) str sum(map(int, input().split())) sum map(int, input().split()) map int input().split() ().split () input split
while 1:
    try:
        print(len(str(sum(map(int, input().split())))))
    except:
        break


