function main(input){
  input = input.split('\n');
  var N = input[0];
  var H = input[1].split(' ').map(parseFloat);
  var curNum = 0;
  var result = 0;
  var count = 0;
  
  for(var i = 0;i < N;i++){
    curNum = H[i];
    loop:for(var j = 1;i + j < N;j++){
      console.log({curNum},H[i + j],{count},{result},{i},j);
      if(curNum >= H[i + j]){
        curNum = H[i + j];
        count++;
        if(result < count){
          result = count;
        }
      }else{
        if(result <= count){
          result = count;
          count = 0;
        }
        break loop;
      }
    }
    count = 0;
  }
  console.log(result);
}
main(require('fs').readFileSync('/dev/stdin','utf8'));