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