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 - 1;){
    curNum = H[i];
    count = 0;

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