n = gets.to_i a = gets.split.map(&:to_i).sort p n.odd? ? a[n / 2] : (a[(n - 1) / 2] + a[n / 2]) / 2.0