n=int(eval(input()))

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



li.sort()



ind=int(n//2)-1



count=0



for k in range(li[ind]+1,li[ind+1]+1):

  count+=1

  

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

#a,b=map(int,input().split())

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

#l=[list(map(int,input().split())) for i in range(n)]

ans=1

dl.sort()

if n%2==0:

    mid=n//2

    ans=dl[mid]-dl[mid-1]

print(ans)    

n = int(eval(input()))
li = list(map(int, input().split()))
li.sort()
ind = int(n // 2) - 1
count = 0
for k in range(li[ind] + 1, li[ind + 1] + 1):
    count += 1
print(count)

n = int(eval(input()))
# a,b=map(int,input().split())
dl = list(map(int, input().split()))
# l=[list(map(int,input().split())) for i in range(n)]
ans = 1
dl.sort()
if n % 2 == 0:
    mid = n // 2
    ans = dl[mid] - dl[mid - 1]
print(ans)

-li = list(map(int, input().split())) -li.sort() -ind = int(n // 2) - 1 -count = 0 -for k in range(li[ind] + 1, li[ind + 1] + 1): -    count += 1 -print(count) +# a,b=map(int,input().split()) +dl = list(map(int, input().split())) +# l=[list(map(int,input().split())) for i in range(n)] +ans = 1 +dl.sort() +if n % 2 == 0: +    mid = n // 2 +    ans = dl[mid] - dl[mid - 1] +print(ans)