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