S=int(input()) A=map(int,input().split()) n=sorted(A) if S%2: m=n[S//2] else: m=(n[S//2-1]+n[S//2])/2 print(m)