import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] H  = new int[N];
		int max = 0;
		for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		int tmp = 0;
		for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		}
		System.out.println(max);
	}
} import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] H  = new int[N];
		int max = 0;
		for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		int tmp = 0;
		for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		}
		System.out.println(max);
	}
} Main public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] H  = new int[N];
		int max = 0;
		for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		int tmp = 0;
		for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		}
		System.out.println(max);
	} main {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] H  = new int[N];
		int max = 0;
		for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		int tmp = 0;
		for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		}
		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[] H  = new int[N]; H new int[N] N int max = 0; max 0 for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			H[i] = Integer.parseInt(sc.next());
		} {
			H[i] = Integer.parseInt(sc.next());
		} H[i] = Integer.parseInt(sc.next()) H[i] H i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int tmp = 0; tmp 0 for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		} int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		} {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		} if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			} H[i]>=H[i+1] H[i] H i H[i+1] H i+1 i 1 {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} tmp++ tmp if(tmp>max) {
					max=tmp;
				} tmp>max tmp max {
					max=tmp;
				} max=tmp max tmp {
				tmp = 0;
			} tmp = 0 tmp 0 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) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] H  = new int[N];
		int max = 0;
		for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		int tmp = 0;
		for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		}
		System.out.println(max);
	}
} public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] H  = new int[N];
		int max = 0;
		for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		int tmp = 0;
		for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		}
		System.out.println(max);
	}
} Main
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] H  = new int[N];
		int max = 0;
		for(int i=0;i<N;i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		int tmp = 0;
		for(int i=0;i<N-1;i++) {
			if(H[i]>=H[i+1]) {
				tmp++;
				if(tmp>max) {
					max=tmp;
				}
			} else {
				tmp = 0;
			}
		}
		System.out.println(max);
	}
}