N = int(input().strip()) A = sorted([int(i) for i in input().strip().split(' ')]) if N & 1 == 0: print((A[(N // 2) - 1] + A[N // 2]) / 2) else: print(A[N // 2])