import std.stdio, std.conv, std.string, std.array, std.algorithm, std.range;

void main() {
  auto N = readln.split[0].to!int;
  auto H = readln.split.to!(int[]);

  H ~= int.max;

  auto maxNum = 0;
  auto num = 0;
  size_t i = 0;
  while(i < H.length - 1) {
    if(H[i+1]<=H[i]) {
      num++;
    } else {
      maxNum = max(maxNum, num);
      num = 0;
    }
    i++;
  }

  maxNum.writeln;
}