N = int(input()) A = sorted([int(x) for x in input().split()]) if len(A) % 2 == 0: print((A[N // 2 - 1] + A[N // 2]) / 2) else: print(sum(A) / N)