n = gets.to_i a = gets.split(" ").map(&:to_i).sort if n % 2 == 1 puts a[n / 2 + 1] else puts ((a[n / 2] + a[n / 2 + 1]) / 2).to_f end