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