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