#include <stdio.h>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    int N;
    NSMutableArray *heights = [[NSMutableArray alloc] initWithCapacity:N];
    scanf("%d", &N);
    NSInteger i = N;
    for(i=0;i<N;i++){
        int h;
        scanf("%d", &h);
        [heights addObject:@(h)];
    }
    
    NSInteger result = 0;
    NSInteger current = 0;
    NSInteger prev = -1;
    for(NSNumber *h in heights) {
        NSInteger height = h.integerValue;
        if (prev == -1) {
            prev = height;
            continue;
        }
        if (prev >= height) {
            current ++;
            result = MAX(current, result);
        } else {
            current = 0;
        }
        prev = height;
    }
    
    printf("%d", result);
    return 0;
}