import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int prev = 0;
		int count = 0;
		int ans = 0;
		
		for (int i=0; i<N; i++) {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int prev = 0;
		int count = 0;
		int ans = 0;
		
		for (int i=0; i<N; i++) {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int prev = 0;
		int count = 0;
		int ans = 0;
		
		for (int i=0; i<N; i++) {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int prev = 0;
		int count = 0;
		int ans = 0;
		
		for (int i=0; i<N; i++) {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int prev = 0; prev 0 int count = 0; count 0 int ans = 0; ans 0 for (int i=0; i<N; i++) {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		} {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			} prev >= tmp prev tmp {
				count++;
				ans = Math.max(ans, count);
			} count++ count ans = Math.max(ans, count) ans Math.max(ans, count) Math.max Math ans count {
				count = 0;
			} count = 0 count 0 prev = tmp prev tmp System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int prev = 0;
		int count = 0;
		int ans = 0;
		
		for (int i=0; i<N; i++) {
			int tmp = sc.nextInt();
			if (prev >= tmp) {
				count++;
				ans = Math.max(ans, count);
			} else {
				count = 0;
			}
			prev = tmp;
		}
		System.out.println(ans);
	}
}
