n=int(input()) a=list(map(int,input().split(" "))) a.sort() N=n//2 if n%2==0: med=(a[N]+a[N-1])/2 else: print(a[N])