import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int elements = sc.nextInt();
        int[] value = new int[elements];
        for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        }
        solve(value);
    }

    public static void solve(int[] height){
        int result = 0;
        int now = 0;
        for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        }
        if(result<now) result = now;
        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int elements = sc.nextInt();
        int[] value = new int[elements];
        for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        }
        solve(value);
    }

    public static void solve(int[] height){
        int result = 0;
        int now = 0;
        for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        }
        if(result<now) result = now;
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int elements = sc.nextInt();
        int[] value = new int[elements];
        for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        }
        solve(value);
    } main {
        Scanner sc = new Scanner(System.in);
        int elements = sc.nextInt();
        int[] value = new int[elements];
        for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        }
        solve(value);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int elements = sc.nextInt(); elements sc.nextInt() sc.nextInt sc int[] value = new int[elements]; value new int[elements] elements for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < elements i elements i++ i++ i {
            value[i] = sc.nextInt();
        } {
            value[i] = sc.nextInt();
        } value[i] = sc.nextInt() value[i] value i sc.nextInt() sc.nextInt sc solve(value) solve value String[] args args public static void solve(int[] height){
        int result = 0;
        int now = 0;
        for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        }
        if(result<now) result = now;
        System.out.println(result);
    } solve {
        int result = 0;
        int now = 0;
        for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        }
        if(result<now) result = now;
        System.out.println(result);
    } int result = 0; result 0 int now = 0; now 0 for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        } int i=1; int i=1; i 1 i<height.length i height.length height height.length i++ i++ i {
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        } {
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        } if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            } height[i-1]>=height[i] height[i-1] height i-1 i 1 height[i] height i {
                now++;
            } now++ now {
                if(result<now) result = now;
                now = 0;
            } if(result<now) result = now; result<now result now result = now result now now = 0 now 0 if(result<now) result = now; result<now result now result = now result now System.out.println(result) System.out.println System.out System System.out result int[] height height public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int elements = sc.nextInt();
        int[] value = new int[elements];
        for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        }
        solve(value);
    }

    public static void solve(int[] height){
        int result = 0;
        int now = 0;
        for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        }
        if(result<now) result = now;
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int elements = sc.nextInt();
        int[] value = new int[elements];
        for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        }
        solve(value);
    }

    public static void solve(int[] height){
        int result = 0;
        int now = 0;
        for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        }
        if(result<now) result = now;
        System.out.println(result);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int elements = sc.nextInt();
        int[] value = new int[elements];
        for (int i = 0; i < elements; i++) {
            value[i] = sc.nextInt();
        }
        solve(value);
    }

    public static void solve(int[] height){
        int result = 0;
        int now = 0;
        for(int i=1; i<height.length; i++){
            if(height[i-1]>=height[i]){
                now++;
            }else{
                if(result<now) result = now;
                now = 0;
            }
        }
        if(result<now) result = now;
        System.out.println(result);
    }
}