n=int(input('')) data=[int(i) for i in input().split()] data.sort() if n%2==0: print(str((data[int(n/2-1)]+data[int(n/2)])/2)) else: print(str(data[int((n-1)/2)]))