import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val n = scanner.nextInt()
    val h = IntArray(n) { scanner.nextInt() }

    var ret = 0
    var stroke = 0
    var cur = 1
    while (cur < h.size) {
        if (h[cur - 1] >= h[cur]) {
            stroke++
            ret = Math.max(ret, stroke)
        } else {
            stroke = 0
        }
        cur++
    }

    println(ret)
}