import java.util.Scanner;
     
public class Main {
    	
    private final static Scanner sc = new Scanner(System.in);
    	
    public static void main(String[] arg) {
    	int N  = sc.nextInt();
        int pred = sc.nextInt();
      	int max = 0;
      	int tmp = 0;
      	for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        }  
      	System.out.println(max);
   	}
} import java.util.Scanner; Scanner java.util public class Main {
    	
    private final static Scanner sc = new Scanner(System.in);
    	
    public static void main(String[] arg) {
    	int N  = sc.nextInt();
        int pred = sc.nextInt();
      	int max = 0;
      	int tmp = 0;
      	for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        }  
      	System.out.println(max);
   	}
} Main private final static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] arg) {
    	int N  = sc.nextInt();
        int pred = sc.nextInt();
      	int max = 0;
      	int tmp = 0;
      	for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        }  
      	System.out.println(max);
   	} main {
    	int N  = sc.nextInt();
        int pred = sc.nextInt();
      	int max = 0;
      	int tmp = 0;
      	for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        }  
      	System.out.println(max);
   	} int N  = sc.nextInt(); N sc.nextInt() sc.nextInt sc int pred = sc.nextInt(); pred sc.nextInt() sc.nextInt sc int max = 0; max 0 int tmp = 0; tmp 0 for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        } {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        } int now = sc.nextInt(); now sc.nextInt() sc.nextInt sc if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            } now <= pred now pred {
              	tmp++;
              	if(tmp > max) max = tmp;
            } tmp++ tmp if(tmp > max) max = tmp; tmp > max tmp max max = tmp max tmp {
              tmp = 0;
            } tmp = 0 tmp 0 pred = now pred now System.out.println(max) System.out.println System.out System System.out max String[] arg arg public class Main {
    	
    private final static Scanner sc = new Scanner(System.in);
    	
    public static void main(String[] arg) {
    	int N  = sc.nextInt();
        int pred = sc.nextInt();
      	int max = 0;
      	int tmp = 0;
      	for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        }  
      	System.out.println(max);
   	}
} public class Main {
    	
    private final static Scanner sc = new Scanner(System.in);
    	
    public static void main(String[] arg) {
    	int N  = sc.nextInt();
        int pred = sc.nextInt();
      	int max = 0;
      	int tmp = 0;
      	for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        }  
      	System.out.println(max);
   	}
} Main
import java.util.Scanner;
     
public class Main {
    	
    private final static Scanner sc = new Scanner(System.in);
    	
    public static void main(String[] arg) {
    	int N  = sc.nextInt();
        int pred = sc.nextInt();
      	int max = 0;
      	int tmp = 0;
      	for (int i = 0; i < N-1; i++) {
         	int now = sc.nextInt();
          	if(now <= pred) {
              	tmp++;
              	if(tmp > max) max = tmp;
            } else {
              tmp = 0;
            }
          	pred = now;
        }  
      	System.out.println(max);
   	}
}