N = int(input()) A = list(map(int,input().split())) A.sort() if N%2 == 0: # 偶数個のとき c = N//2 print((A[c-1] + A[c])/2) else: print(A[N//2])