N = int(input()) L = list(map(int, input().split())) L.sort(reverse=True) M = N // 2 if N % 2 != 0: print(L[M]) else: print((L[M-1] + L[M])/2)