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