import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int [] in = new int [a];
        for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            }
        int count = 0;
		int ans = 0;
        for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              }       
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int [] in = new int [a];
        for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            }
        int count = 0;
		int ans = 0;
        for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              }       
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int [] in = new int [a];
        for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            }
        int count = 0;
		int ans = 0;
        for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              }       
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int [] in = new int [a];
        for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            }
        int count = 0;
		int ans = 0;
        for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              }       
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int [] in = new int [a]; in new int [a] a for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            } int i=0; int i=0; i 0 i<a i a i++ i++ i {
                             in[i] = sc.nextInt();
                            } {
                             in[i] = sc.nextInt();
                            } in[i] = sc.nextInt() in[i] in i sc.nextInt() sc.nextInt sc int count = 0; count 0 int ans = 0; ans 0 for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              } int i=0; int i=0; i 0 i<a-1 i a-1 a 1 i++ i++ i {if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              } {if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              } if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   } in[i]>=in[i+1] in[i] in i in[i+1] in i+1 i 1 {count++;} count++ count {ans = Math.max(ans,count);
                                   count=0;
                                   } ans = Math.max(ans,count) ans Math.max(ans,count) Math.max Math ans count count=0 count 0 if(i==a-2){ans = Math.max(ans,count);} i==a-2 i a-2 a 2 {ans = Math.max(ans,count);} ans = Math.max(ans,count) ans Math.max(ans,count) Math.max Math ans count System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int [] in = new int [a];
        for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            }
        int count = 0;
		int ans = 0;
        for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              }       
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int [] in = new int [a];
        for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            }
        int count = 0;
		int ans = 0;
        for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              }       
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int [] in = new int [a];
        for(int i=0;i<a;i++){
                             in[i] = sc.nextInt();
                            }
        int count = 0;
		int ans = 0;
        for(int i=0;i<a-1;i++){if(in[i]>=in[i+1]){count++;}
                               else{ans = Math.max(ans,count);
                                   count=0;
                                   }
                               if(i==a-2){ans = Math.max(ans,count);}
                              }       
		System.out.println(ans);
	}
}
