n = gets.to_i a = gets.split.map(&:to_f).sort.values_at((n-1)/2..n/2) puts a.reduce(:+)/a.length