import java.util.*;

/**
 * Main
 */
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int now = sc.nextInt();
		int next = 0;
		int count = 0;
		int answer = 0;
		for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		}
		answer=Math.max(answer,count);
		System.out.println(answer);

		sc.close();
	}
}; import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int now = sc.nextInt();
		int next = 0;
		int count = 0;
		int answer = 0;
		for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		}
		answer=Math.max(answer,count);
		System.out.println(answer);

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int now = sc.nextInt();
		int next = 0;
		int count = 0;
		int answer = 0;
		for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		}
		answer=Math.max(answer,count);
		System.out.println(answer);

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int now = sc.nextInt();
		int next = 0;
		int count = 0;
		int answer = 0;
		for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		}
		answer=Math.max(answer,count);
		System.out.println(answer);

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int now = sc.nextInt(); now sc.nextInt() sc.nextInt sc int next = 0; next 0 int count = 0; count 0 int answer = 0; answer 0 for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		} int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		} {
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		} next = sc.nextInt() next sc.nextInt() sc.nextInt sc if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			} now >= next now next {
				count++;
			} count++ count {
				answer=Math.max(answer,count);
				count=0;
			} answer=Math.max(answer,count) answer Math.max(answer,count) Math.max Math answer count count=0 count 0 now = next now next answer=Math.max(answer,count) answer Math.max(answer,count) Math.max Math answer count System.out.println(answer) System.out.println System.out System System.out answer sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int now = sc.nextInt();
		int next = 0;
		int count = 0;
		int answer = 0;
		for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		}
		answer=Math.max(answer,count);
		System.out.println(answer);

		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int now = sc.nextInt();
		int next = 0;
		int count = 0;
		int answer = 0;
		for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		}
		answer=Math.max(answer,count);
		System.out.println(answer);

		sc.close();
	}
} Main
import java.util.*;

/**
 * Main
 */
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int now = sc.nextInt();
		int next = 0;
		int count = 0;
		int answer = 0;
		for(int i=0; i<N-1; i++){
			next = sc.nextInt();
			if(now >= next){
				count++;
			} else{
				answer=Math.max(answer,count);
				count=0;
			}
			now = next;
		}
		answer=Math.max(answer,count);
		System.out.println(answer);

		sc.close();
	}
};