n=int(input()) *a,=map(int,input().split()) a.sort() c=n//2 print(a[c] if n%2 else (a[c-1]+a[c])/2)