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