import numpy as np



N = int(eval(input()))



A = list(map(int, input().split()))



A_sorted = sorted(A)



print((A_sorted[int(N/2)] - A_sorted[int(N/2)-1]))
N = int(eval(input()))

d = list(map(int, input().split()))



d.sort()



if N % 2 == 1:

    print((0))

else:

    print((d[N//2] - d[N//2-1]))
import numpy as np

N = int(eval(input()))
A = list(map(int, input().split()))
A_sorted = sorted(A)
print((A_sorted[int(N / 2)] - A_sorted[int(N / 2) - 1]))

N = int(eval(input()))
d = list(map(int, input().split()))
d.sort()
if N % 2 == 1:
    print((0))
else:
    print((d[N // 2] - d[N // 2 - 1]))

-import numpy as np - -A = list(map(int, input().split())) -A_sorted = sorted(A) -print((A_sorted[int(N / 2)] - A_sorted[int(N / 2) - 1])) +d = list(map(int, input().split())) +d.sort() +if N % 2 == 1: +    print((0)) +else: +    print((d[N // 2] - d[N // 2 - 1]))