a = gets().to_i
b = gets().split(" ")

for i in 0..a-1
  b[i] = b[i].to_i
end

c = []

for i in 0..a-1
  if b[i+1]!=nil
    if b[i]>=b[i+1]
      c.push(1)
    else
      c.push(0)
    end
  end
end
t = []

c.chunk { |i|
 i==1 
}.each{ |even, ary|
  t.push(ary.length)
}

p t.max