#include<bits/stdc++.h>
#define int long long
#define endl "\n"
using namespace std;
signed main()
{
int n,i,a[100001],kq=0,length=0; a[0]=0;
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a[i];
if (a[i]>=a[i-1])
{
length++; kq=max(kq,length);
}
else length=1;
}
cout<<kq;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2RlZmluZSBpbnQgbG9uZyBsb25nCiNkZWZpbmUgZW5kbCAiXG4iCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpzaWduZWQgbWFpbigpCnsKCWludCBuLGksYVsxMDAwMDFdLGtxPTAsbGVuZ3RoPTA7IGFbMF09MDsKCWNpbj4+bjsKCWZvcihpPTE7aTw9bjtpKyspCgl7CgkJY2luPj5hW2ldOwoJCWlmIChhW2ldPj1hW2ktMV0pCgkJewoJCQlsZW5ndGgrKzsga3E9bWF4KGtxLGxlbmd0aCk7CgkJfQoJCWVsc2UgbGVuZ3RoPTE7Cgl9Cgljb3V0PDxrcTsKfQ==