'use strict'
let input = require("fs").readFileSync("/dev/stdin", "utf8");
const Nums = input.split('\n');
const A = Nums[0];
const B = Nums[1].split(' ').map(x => x*1);
let ans = 0;
let max = 0;
let temp = 0;
for(let i = 0; i < A; i++){
  if(B[i] >= B[i+1]){
    temp++;
  }else{
    if(temp >= max){ 
  		max = temp;
    }
    temp = 0;
  }
}

console.log(max);