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