'use strict'

// 1≤N≤10e5
// 1≤Hi≤10e9

function main(input) {
  input = input
    .trim()
    .split(/\n|\s/)
    .map(v => Number(v))
  const N = input[0]
  const H = input.slice(1)

  const diff = [0]
  for (let i = 1; i < N; i++) {
    diff[i] = H[i] - H[i - 1] <= 0 ? 1 + diff[i - 1] : 0
  }

  console.log(Math.max(...diff))
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
