N = gets.to_i As = gets.split.map(&:to_i).sort t = N / 2 if N.odd? puts As[t] else puts (As[t] + As[t - 1]) / 2.0 end