n = int(input()) A = sorted(map(int, input().split())) t = n // 2 if n & 1: print(A[t]) else: print(sum(A[t - 1: t + 1]) / 2)