let n = Int(readLine()!)!
let h=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}

var i = 0
var p : Int = h[0]
var c = 0
var max_c = 0
for i in 1..<n {
  //print( h[i] )
  if( h[i] <= p ) {
    c += 1
    if( c > max_c ) {
      max_c = c
    }
  } else {
    c = 0
  }
  
  p = h[i]
}

print( max_c )