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