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