fun readString() = readLine()!!
fun readInt() = readLine()!!.toInt()
fun readLong() = readLine()!!.toLong()
fun readIntList() = readLine()!!.split(" ").map(String::toInt)
fun readLongList() = readLine()!!.split(" ").map(String::toLong)

fun main(args: Array<String>) {
    val N = readInt()
    val H = readIntList()
    var res = 0
    var i = 0
    while (i < N - 1) {
        var j = i
        while (j < N) {
            if (j == N - 1 || H[j] < H[j + 1]) {
                res = (j - i).coerceAtLeast(res)
                i = j
                break
            }
            j++
        }
        i++
    }
    println(res)
}