#include <stdio.h>
int main() {
long long int n, ant=0, atual = 0, i, seq = 0, longest = 0;
scanf("%I64d", &n);
for(i=0;i<n;i++) {
scanf("%I64d", &atual);
if(atual >= ant) {
seq++;
} else{
if(seq > longest) {
longest = seq;
}
seq = 1;
}
ant = atual;
//printf("ant %d - atual %d - seq %d - longest %d\n", ant, atual, seq, longest);
}
if(seq > longest) {
longest = seq;
seq = 1;
}
if(longest == 0 && seq > 0)
longest = seq;
else if(longest==0 && seq == 0)
longest = 1;
printf("%I64d\n", longest);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGxvbmcgbG9uZyBpbnQgbiwgYW50PTAsIGF0dWFsID0gMCwgaSwgc2VxID0gMCwgbG9uZ2VzdCA9IDA7CiAgICAKICAgIHNjYW5mKCIlSTY0ZCIsICZuKTsKICAgIAogICAgZm9yKGk9MDtpPG47aSsrKSB7CiAgICAgICAgc2NhbmYoIiVJNjRkIiwgJmF0dWFsKTsKICAgICAgICBpZihhdHVhbCA+PSBhbnQpIHsKICAgICAgICAgICAgc2VxKys7CiAgICAgICAgfSBlbHNlewogICAgICAgICAgICBpZihzZXEgPiBsb25nZXN0KSB7CiAgICAgICAgICAgICAgICBsb25nZXN0ID0gc2VxOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHNlcSA9IDE7CiAgICAgICAgfQogICAgICAgIGFudCA9IGF0dWFsOwogICAgICAgIAogICAgICAgIC8vcHJpbnRmKCJhbnQgJWQgLSAgYXR1YWwgJWQgLSAgc2VxICVkIC0gbG9uZ2VzdCAlZFxuIiwgYW50LCBhdHVhbCwgc2VxLCBsb25nZXN0KTsKICAgIH0KICAgIGlmKHNlcSA+IGxvbmdlc3QpIHsKICAgICAgICBsb25nZXN0ID0gc2VxOwogICAgICAgIHNlcSA9IDE7CiAgICB9CiAgICAKICAgIGlmKGxvbmdlc3QgPT0gMCAmJiBzZXEgPiAwKQogICAgICAgIGxvbmdlc3QgPSBzZXE7CiAgICBlbHNlIGlmKGxvbmdlc3Q9PTAgJiYgc2VxID09IDApCiAgICAgICAgbG9uZ2VzdCA9IDE7CiAgICAKICAgIHByaW50ZigiJUk2NGRcbiIsIGxvbmdlc3QpOwogICAgCiAgICAKICAgIHJldHVybiAwOwp9Cg==