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