import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		long[] H = new long[N];
		for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		}
		sc.close();
		int[] d = new int[N];
		int cnt = 0;
		for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		}
		Arrays.sort(d);
		System.out.println(d[N-1]);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		long[] H = new long[N];
		for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		}
		sc.close();
		int[] d = new int[N];
		int cnt = 0;
		for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		}
		Arrays.sort(d);
		System.out.println(d[N-1]);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		long[] H = new long[N];
		for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		}
		sc.close();
		int[] d = new int[N];
		int cnt = 0;
		for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		}
		Arrays.sort(d);
		System.out.println(d[N-1]);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		long[] H = new long[N];
		for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		}
		sc.close();
		int[] d = new int[N];
		int cnt = 0;
		for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		}
		Arrays.sort(d);
		System.out.println(d[N-1]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc long[] H = new long[N]; H new long[N] N for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			H[i] = Long.parseLong(sc.next());
		} {
			H[i] = Long.parseLong(sc.next());
		} H[i] = Long.parseLong(sc.next()) H[i] H i Long.parseLong(sc.next()) Long.parseLong Long sc.next() sc.next sc sc.close() sc.close sc int[] d = new int[N]; d new int[N] N int cnt = 0; cnt 0 for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		} 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]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		} {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		} if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			} H[i] >= H[i+1] H[i] H i H[i+1] H i+1 i 1 {
				cnt++;
			} cnt++ cnt {
				cnt = 0;
			} cnt = 0 cnt 0 d[i] = cnt d[i] d i cnt Arrays.sort(d) Arrays.sort Arrays d System.out.println(d[N-1]) System.out.println System.out System System.out d[N-1] d N-1 N 1 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		long[] H = new long[N];
		for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		}
		sc.close();
		int[] d = new int[N];
		int cnt = 0;
		for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		}
		Arrays.sort(d);
		System.out.println(d[N-1]);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		long[] H = new long[N];
		for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		}
		sc.close();
		int[] d = new int[N];
		int cnt = 0;
		for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		}
		Arrays.sort(d);
		System.out.println(d[N-1]);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		long[] H = new long[N];
		for(int i = 0;i < N;i++) {
			H[i] = Long.parseLong(sc.next());
		}
		sc.close();
		int[] d = new int[N];
		int cnt = 0;
		for(int i = 0;i < N-1;i++) {
			if(H[i] >= H[i+1]) {
				cnt++;
			}else {
				cnt = 0;
			}
			d[i] = cnt;
		}
		Arrays.sort(d);
		System.out.println(d[N-1]);
	}
}