'use strict';
function main(input) {
  const H = input.split('\n')[1].split(' ');
  let cnt = 0;
  let tmp = 0;
  for (let i = 0; i < H.length-1; ++i) {
    if (parseInt(H[i]) >= parseInt(H[i+1])) {
      ++tmp;
    } else {
      if (tmp > cnt) {
        cnt = tmp;
      }
      tmp = 0;
    }
  }
  console.log(cnt);
}

main(require('fs')readFile.Sync('/dev/stdin', 'utf8'));