const numberList = require('fs').readFileSync('/dev/stdin','utf8').trim().split('\n')

var h = numberList[1].split(' ').map(e => parseInt(e))

var max = 0
var length = 0
for(var i=0;i<h.length - 1;i++) {
  if(h[i] >= h[i+1]) {
    length += 1
  } else {
    if(max < length) {
      max = length
    }
    length = 0
  }
}

if(max < length) {
  max = length
}

console.log(max)
