let N = Int(readLine()!)!
let H = readLine()!.characters.split(" ").map{Int(String($0))!}
var ans = 0
var l = 0
while l < N {
    var r = l
    while r+1 < N && H[r] >= H[r+1] {
        r += 1
    }
    ans = max(ans, r-l)
    l = r+1
}
print(ans)