a = gets.to_i b = gets.split.map(&:to_i).sort puts a % 2 == 0 ? b[a/2 - 1, 2].inject(:+) / 2.0 : b[a/2]