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