S = int(input()) num = list(map(float, input().split())) num.sort() if N%2!=0: print(num[S//2]) else: print((num[S//2]+num[(S//2)-1])/2)