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