# 今回は N は不要 N = gets.to_i As = gets.split.map(&:to_i).sort if N.odd? puts As[N / 2] else puts As[(N / 2 - 1)..(N / 2)].sum / 2.0 end