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