N = int(input()) A = list(map(int, input().split())) A.sort() if N % 2 == 0: Y = (A[N // 2 - 1] + A[N // 2]) / 2 else: Y = A[N // 2] print(f"{Y:.1f}")