N = gets.to_i A = gets.split.map(&:to_i).sort if N % 2 == 0 puts (A[(N - 1) / 2] + A[N / 2]) / 2.0 else puts A[N / 2] end