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