n = int(eval(input()))

d = [int(i) for i in input().split()]

d.sort()

k = d[n // 2] - d[(n // 2) - 1]

print(k)
n = int(eval(input()))

d = sorted([int(i) for i in input().split()])

print((d[n//2] - d[n//2 - 1]))
n = int(eval(input()))
d = [int(i) for i in input().split()]
d.sort()
k = d[n // 2] - d[(n // 2) - 1]
print(k)

n = int(eval(input()))
d = sorted([int(i) for i in input().split()])
print((d[n // 2] - d[n // 2 - 1]))

-d = [int(i) for i in input().split()] -d.sort() -k = d[n // 2] - d[(n // 2) - 1] -print(k) +d = sorted([int(i) for i in input().split()]) +print((d[n // 2] - d[n // 2 - 1]))