N = gets.to_i As = gets.split.map(&:to_i).sort half = N / 2 puts (N.odd ? As[half] : (As[(half)] + As[(half) - 1]) / 2.0)