import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int maxv = 0;
		int count = 0;
		for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		}
		System.out.println(Math.max(maxv, count));
	}


} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int maxv = 0;
		int count = 0;
		for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		}
		System.out.println(Math.max(maxv, count));
	}


} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int maxv = 0;
		int count = 0;
		for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		}
		System.out.println(Math.max(maxv, count));
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int maxv = 0;
		int count = 0;
		for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		}
		System.out.println(Math.max(maxv, count));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int now = 0; now 0 int maxv = 0; maxv 0 int count = 0; count 0 for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		} {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		} int height = sc.nextInt(); height sc.nextInt() sc.nextInt sc if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			} height > now height now {
				maxv= Math.max(maxv, count);
				count = 0;
			} maxv= Math.max(maxv, count) maxv Math.max(maxv, count) Math.max Math maxv count count = 0 count 0 {
				count++;
			} count++ count now = height now height System.out.println(Math.max(maxv, count)) System.out.println System.out System System.out Math.max(maxv, count) Math.max Math maxv count String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int maxv = 0;
		int count = 0;
		for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		}
		System.out.println(Math.max(maxv, count));
	}


} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int maxv = 0;
		int count = 0;
		for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		}
		System.out.println(Math.max(maxv, count));
	}


} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int maxv = 0;
		int count = 0;
		for(int i = 0; i < N; i++) {
			int height = sc.nextInt();
			if(height > now) {
				maxv= Math.max(maxv, count);
				count = 0;
			}else {
				count++;
			}
			now = height;
		}
		System.out.println(Math.max(maxv, count));
	}


}