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