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