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