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