n,*l=list(map(int,open(0).read().split()));n//=2;l.sort();print((l[n]-l[~n]))
n,*d=list(map(int,open(0).read().split()))

l,r=sorted(d)[n//2-1:n//2+1]

print((r-l))
n, *l = list(map(int, open(0).read().split()))
n //= 2
l.sort()
print((l[n] - l[~n]))

n, *d = list(map(int, open(0).read().split()))
l, r = sorted(d)[n // 2 - 1 : n // 2 + 1]
print((r - l))

-n, *l = list(map(int, open(0).read().split())) -n //= 2 -l.sort() -print((l[n] - l[~n])) +n, *d = list(map(int, open(0).read().split())) +l, r = sorted(d)[n // 2 - 1 : n // 2 + 1] +print((r - l))