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