#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <queue>
#include <stack>
#include <map>
#include <cmath>
#include <vector>
#define max_ 100010
#define inf 0x3f3f3f3f
#define ll long long
using namespace std;
int n;
int num[max_];
int main(int argc, char const *argv[])
{
int i;
scanf("%d",&n);
for(i=1;i<=n;i++)
scanf("%d",&num[i]);
int maxx=-1,cnt=1;
for(i=2;i<=n;i++)
{
if(num[i]>=num[i-1])
cnt++;
else
{
if(cnt>maxx)
maxx=cnt;
cnt=1;
}
}
printf("%d\n",max(maxx,cnt));
return 0;
}