import java.util.Scanner;

class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N = sc.nextInt(), H[] = new int[N], temp = 0, ans = 0;
		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		}
		if(temp>=ans)
			ans = temp;
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N = sc.nextInt(), H[] = new int[N], temp = 0, ans = 0;
		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		}
		if(temp>=ans)
			ans = temp;
		System.out.println(ans);
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		int N = sc.nextInt(), H[] = new int[N], temp = 0, ans = 0;
		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		}
		if(temp>=ans)
			ans = temp;
		System.out.println(ans);
	} main {
		int N = sc.nextInt(), H[] = new int[N], temp = 0, ans = 0;
		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		}
		if(temp>=ans)
			ans = temp;
		System.out.println(ans);
	} int N = sc.nextInt() N sc.nextInt() sc.nextInt sc H[] = new int[N] H new int[N] N temp = 0 temp 0 ans = 0; ans 0 for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		} {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		} H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			} i != 0 i 0 {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			} if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				} H[i - 1] >= H[i] H[i - 1] H i - 1 i 1 H[i] H i {
					temp++;
                  	//System.out.println("time"+(i+1));
				} temp++ temp {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				} if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					} ans <= temp ans temp {
						ans = temp;
						temp = 0;
					} ans = temp ans temp temp = 0 temp 0 {
						temp = 0;
					} temp = 0 temp 0 if(temp>=ans)
			ans = temp; temp>=ans temp ans ans = temp ans temp System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N = sc.nextInt(), H[] = new int[N], temp = 0, ans = 0;
		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (i != 0) {
				if (H[i - 1] >= H[i]) {
					temp++;
                  	//System.out.println("time"+(i+1));
				} else {
					if (ans <= temp) {
						ans = temp;
						temp = 0;
					} else {
						temp = 0;
					}
				}
			}
		}
		if(temp>=ans)
			ans = temp;
		System.out.println(ans);
	}
}