#include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++)
{
cin >> a[i];
}
int ctr = 1, maxLength = 1;
for (int i = 1; i < n; i++)
{
if (a[i] >= a[i - 1])
{
ctr++;
maxLength = max(maxLength, ctr);
}
else
ctr = 1;
}
cout << maxLength;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKICAgIGlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpOwogICAgY2luLnRpZSgwKTsKCiAgICBpbnQgbjsKICAgIGNpbiA+PiBuOwoKICAgIHZlY3RvcjxpbnQ+IGEobik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKICAgIHsKICAgICAgICBjaW4gPj4gYVtpXTsKICAgIH0KCiAgICBpbnQgY3RyID0gMSwgbWF4TGVuZ3RoID0gMTsKCiAgICBmb3IgKGludCBpID0gMTsgaSA8IG47IGkrKykKICAgIHsKICAgICAgICBpZiAoYVtpXSA+PSBhW2kgLSAxXSkKICAgICAgICB7CiAgICAgICAgICAgIGN0cisrOwogICAgICAgICAgICBtYXhMZW5ndGggPSBtYXgobWF4TGVuZ3RoLCBjdHIpOwogICAgICAgIH0KICAgICAgICBlbHNlCiAgICAgICAgICAgIGN0ciA9IDE7CiAgICB9CgogICAgY291dCA8PCBtYXhMZW5ndGg7Cn0=