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