Consider the following Python code.
c = 0
def msort(a):
global c
if len(a) <= 1:
return a
L, R = msort(a[:len(a) // 2]), msort(a[len(a) // 2:])
out, i, j = [], 0, 0
while i < len(L) and j < len(R):
c += 1
if L[i] <= R[j]:
out.append(L[i]); i += 1
else:
out.append(R[j]); j += 1
return out + L[i:] + R[j:]
msort([3, 8, 1, 6, 2, 4, 5, 7])
print(c)
The value printed is .