let n = Int(readLine()!)!
        let hArr = String(readLine()!).split(separator: " " ).map { Int(String($0))! }
        var resArr = [Int]()
        for i in 0..<n {
            var startNum = hArr[i]
            var res = 0
            for j in i+1..<n {
                if startNum >= hArr[j] {
                    res += 1
                } else {
                    break
                }
                startNum = hArr[j]
            }
            resArr.append(res)
        }
        let result = resArr.reduce(0) { res, num in
            return max(res, num)
        }
        print(result)