import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                int h1 = sc.nextInt();
                int cnt = 0, max = 0;
                for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } 
                sc.close();
                System.out.println(max);
        }
} import java.util.Scanner; Scanner java.util public class Main {
        public static void main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                int h1 = sc.nextInt();
                int cnt = 0, max = 0;
                for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } 
                sc.close();
                System.out.println(max);
        }
} Main public static void main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                int h1 = sc.nextInt();
                int cnt = 0, max = 0;
                for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } 
                sc.close();
                System.out.println(max);
        } main {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                int h1 = sc.nextInt();
                int cnt = 0, max = 0;
                for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } 
                sc.close();
                System.out.println(max);
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int h1 = sc.nextInt(); h1 sc.nextInt() sc.nextInt sc int cnt = 0 cnt 0 max = 0; max 0 for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } int h2 = sc.nextInt(); h2 sc.nextInt() sc.nextInt sc if(h1 >= h2) cnt++;
                        else cnt = 0; h1 >= h2 h1 h2 cnt++ cnt cnt = 0 cnt 0 if(max < cnt) max = cnt; max < cnt max cnt max = cnt max cnt h1 = h2 h1 h2 sc.close() sc.close sc System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
        public static void main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                int h1 = sc.nextInt();
                int cnt = 0, max = 0;
                for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } 
                sc.close();
                System.out.println(max);
        }
} public class Main {
        public static void main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                int h1 = sc.nextInt();
                int cnt = 0, max = 0;
                for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } 
                sc.close();
                System.out.println(max);
        }
} Main
import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                int h1 = sc.nextInt();
                int cnt = 0, max = 0;
                for(int i = 1; i < N; i++) {
                        int h2 = sc.nextInt();
                        if(h1 >= h2) cnt++;
                        else cnt = 0;
                        if(max < cnt) max = cnt;
                        h1 = h2;
                } 
                sc.close();
                System.out.println(max);
        }
}
