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