import java.util.*

fun main(args:Array<String>){
    val n = readLine()!!.toInt()
    val a = readLine()!!.split(" ").map{it.toInt()}
    var ans = 0
    var r = 0
    for(l in 0 until n){
        if(r == l) r++
        while(r < n){
            if(a[r] <= a[r - 1]) r++
            else break
        }
        ans = Math.max(ans, r - l - 1)
    }
    println(ans)
}