#coding:utf-8 N=input() A=map(int,raw_input().split()) A.sort() if len(A)%2==0: print float((A[len(A)/2-1]+A[len(A)/2])/2.0) else: print A[len(A)/2]