n=int(input()) list=[int(i) for i in input().split()] list.sort() if n%2==0: print((list[int(n/2)-1]+list[int(n/2)])/2) else: print(list[int(n/2)])