n = gets.to_i w = gets.split(" ").map(&:to_i).sort puts n % 2 != 0 ? w[n / 2] : (w[n / 2 - 1] + w[n / 2]) / 2.0