#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> felicidad(N);
for (int i = 0; i < N; i++) {
cin >> felicidad[i];
}
int max_racha = 1, racha_actual = 1;
for (int i = 1; i < N; i++) {
if (felicidad[i] >= felicidad[i - 1]) {
racha_actual++;
max_racha = max(max_racha, racha_actual);
} else {
racha_actual = 1;
}
}
cout << max_racha << endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGludCBOOwogICAgY2luID4+IE47CiAgICB2ZWN0b3I8aW50PiBmZWxpY2lkYWQoTik7CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBOOyBpKyspIHsKICAgICAgICBjaW4gPj4gZmVsaWNpZGFkW2ldOwogICAgfQoKICAgIGludCBtYXhfcmFjaGEgPSAxLCByYWNoYV9hY3R1YWwgPSAxOwogICAgZm9yIChpbnQgaSA9IDE7IGkgPCBOOyBpKyspIHsKICAgICAgICBpZiAoZmVsaWNpZGFkW2ldID49IGZlbGljaWRhZFtpIC0gMV0pIHsKICAgICAgICAgICAgcmFjaGFfYWN0dWFsKys7CiAgICAgICAgICAgIG1heF9yYWNoYSA9IG1heChtYXhfcmFjaGEsIHJhY2hhX2FjdHVhbCk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcmFjaGFfYWN0dWFsID0gMTsKICAgICAgICB9CiAgICB9CgogICAgY291dCA8PCBtYXhfcmFjaGEgPDwgZW5kbDsKICAgIHJldHVybiAwOwp9Cg==