n = gets.to_i arr = gets.split.map(&:to_i).sort p (arr[((n-1)/2.0).ceil] + arr[((n-1)/2.0).floor])/2.0