input();a=sorted(map(int,input().split())) t=len(a) if t%2==0: t//=2 print(sum(a[t-1:t+1])/2) else: t//=2 print(a[t])