N = int(input()) A = list(map(int, input().split())) A = sorted(A) if N % 2 == 0: q = N // 2 q = (A[q-1] + A[q]) / 2 else: q = A[N // 2] print(q)