'use strict';

function main(stdin) {
  const input = stdin.split('\n');
  const N = Number(input.shift());
  const params = input[0].split(' ').map(v => parseInt(v, 10));

  let max = 0;
  let cur = 0;

  params.reduce((a, b) => {
    if (a >= b) {
      ++cur;
      if (cur > max) max = cur;
    } else {
      cur = 0;
    }
    return b;
  })
  
  console.log(max);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8').trim());