
import java.util.Scanner;

public class Main {
	static int intN =0;
	static int sosuCnt =0;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		String[] h = sc.nextLine().split(" ");

		int intN = Integer.parseInt(n);

		int max = 0;
		int cnt=0;
		for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		}
		if (max < cnt) {
			max=cnt;
		}


		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static int intN =0;
	static int sosuCnt =0;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		String[] h = sc.nextLine().split(" ");

		int intN = Integer.parseInt(n);

		int max = 0;
		int cnt=0;
		for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		}
		if (max < cnt) {
			max=cnt;
		}


		System.out.println(max);
	}
} Main static int intN =0; intN 0 static int sosuCnt =0; sosuCnt 0 public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		String[] h = sc.nextLine().split(" ");

		int intN = Integer.parseInt(n);

		int max = 0;
		int cnt=0;
		for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		}
		if (max < cnt) {
			max=cnt;
		}


		System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		String[] h = sc.nextLine().split(" ");

		int intN = Integer.parseInt(n);

		int max = 0;
		int cnt=0;
		for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		}
		if (max < cnt) {
			max=cnt;
		}


		System.out.println(max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.nextLine(); n sc.nextLine() sc.nextLine sc String[] h = sc.nextLine().split(" "); h sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int intN = Integer.parseInt(n); intN Integer.parseInt(n) Integer.parseInt Integer n int max = 0; max 0 int cnt=0; cnt 0 for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		} int i = 0; int i = 0; i 0 i < h.length-1 i h.length-1 h.length h h.length 1 i++ i++ i {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		} {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		} if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			} Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1]) Integer.parseInt(h[i]) Integer.parseInt Integer h[i] h i Integer.parseInt(h[i+1]) Integer.parseInt Integer h[i+1] h i+1 i 1 {
				cnt++;
			} cnt++ cnt {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			} if (max < cnt) {
					max=cnt;
				} max < cnt max cnt {
					max=cnt;
				} max=cnt max cnt cnt=0 cnt 0 if (max < cnt) {
			max=cnt;
		} max < cnt max cnt {
			max=cnt;
		} max=cnt max cnt System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
	static int intN =0;
	static int sosuCnt =0;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		String[] h = sc.nextLine().split(" ");

		int intN = Integer.parseInt(n);

		int max = 0;
		int cnt=0;
		for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		}
		if (max < cnt) {
			max=cnt;
		}


		System.out.println(max);
	}
} public class Main {
	static int intN =0;
	static int sosuCnt =0;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		String[] h = sc.nextLine().split(" ");

		int intN = Integer.parseInt(n);

		int max = 0;
		int cnt=0;
		for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		}
		if (max < cnt) {
			max=cnt;
		}


		System.out.println(max);
	}
} Main

import java.util.Scanner;

public class Main {
	static int intN =0;
	static int sosuCnt =0;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		String[] h = sc.nextLine().split(" ");

		int intN = Integer.parseInt(n);

		int max = 0;
		int cnt=0;
		for (int i = 0;i < h.length-1;i++) {
			if (Integer.parseInt(h[i]) >= Integer.parseInt(h[i+1])) {
				cnt++;
			} else {
				if (max < cnt) {
					max=cnt;
				}
				cnt=0;
			}
		}
		if (max < cnt) {
			max=cnt;
		}


		System.out.println(max);
	}
}