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