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