N= int(input()) L = list(map(int,input().split())) l = sorted(L) if N%2 == 0: print((l[N//2-1]+l[N//2])/2) else: print(l[N-1//2])