try:
    while 1:
        print(len(str(sum(map(int, input().split())))))
except Exception:
    pass try:
    while 1:
        print(len(str(sum(map(int, input().split())))))
except Exception:
    pass except Exception:
    pass while 1:
        print(len(str(sum(map(int, input().split()))))) 1 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
try:
    while 1:
        print(len(str(sum(map(int, input().split())))))
except Exception:
    pass