n = gets.chop.to_i
h = gets.chop.split.map(&:to_i)


ans = 0
num = 0

n.times do |index|

  unless index == 0 then

    if h[index] <= h[index-1] then
      num += 1
      ans = [num, ans].max

    else
      ans = [num, ans].max
      num = 0
    end


  end

end

puts ans
