N = map(int,input().split()) A = list(map(int,input().split())) A = sorted(A) if len(A)%2==0: print(A[(len(A)/2-1)]+A[(len(A)/2)]) else: print((A[(len(A)-1)/2]))