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