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