N = input() D = map(int, raw_input().split()) A = sorted(D) if N%2 == 0: mj = N/2 print (A[mj] + A[mj-1]) / 2.0 if N%2 >= 1: mj = N/2 print A[mj]