N = int(input()) A = [int(i) for i in input().split()] A.sort() if N%2 != 0: print(A[int(N/2)]) else: print((A[int(N/2)]+A[int(N/2-1)])/2)