
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))
 A = [] A [] B = [] B [] s = True s True while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b) s try:
        a,b = map(int, input().split())
    except:
        break
     except:
        break
     break a,b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b A.append(a) A.append A append a B.append(b) B.append B append b for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits)) i range(len(A)) range len(A) len A sum = A[i] + B[i] sum A[i] + B[i] A[i] A i B[i] B i digits = 1 digits 1 while(sum//10 != 0):
        digits += 1
        sum //= 10
     sum//10 != 0 sum//10 sum 10 0 digits += 1 digits 1 sum //= 10 sum 10 print(str(digits)) print str(digits) str digits sum = A[i] + B[i] A[i] + B[i] sum a,b = map(int, input().split()) map(int, input().split()) a digits = 1 1 digits b = map(int, input().split()) map(int, input().split()) b A = [] [] A B = [] [] B sum //= 10 10 sum digits += 1 1 digits s = True True s

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

