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