import sys
def main():
    for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1)

if __name__ == '__main__':
    main() import sys sys def main():
    for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1) main for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1) line sys.stdin sys stdin A = list(map(int,line.split())) A list(map(int,line.split())) list map(int,line.split()) map int line.split() line.split line split C = A[0]+A[1] C A[0]+A[1] A[0] A 0 A[1] A 1 count = 0 count 0 while True:
            C/=10
            if C < 1:
                break
            count += 1
         True C/=10 C 10 if C < 1:
                break
             C < 1 C 1 break count += 1 count 1 print(count+1) print count+1 count 1 if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1) def main():
    for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1) main
import sys
def main():
    for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1)

if __name__ == '__main__':
    main()