n = gets.to_i list = gets.chomp.split(" ").map &:to_i list.sort! a = list[((n-1)/2).floor] b = list[((n-1)/2).ceil] puts "#{(a+b).to_f/2}"