'use strict'

const main = input => {
	const args = input.split('\n').map(arg => arg.split(' '))
	const N = parseInt(args[0][0], 10)
	const H = args[1].map(arg => parseInt(arg, 10))
	let max = 0
	let cnt = 0
	
	for (let i = 0; i < N - 1; i++) {
		if (H[i] >= H[i + 1]) {
			cnt++
			max = Math.max(max, cnt)
		} else {
			cnt = 0
		}
	}

	console.log(max)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
