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