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