import math N = int(input()) A = list(map(int,input().split())) b = sorted(A) if N % 2 == 1: print(b[int((N - 1)/2)]) else: print(round((b[int(N/2) - 1] + b[int(N/2)])/2,1))