import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int i;
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}
		int sum = 0;
		int max = Integer.MIN_VALUE;
		for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		}
		if(sum > max)
			max = sum;
		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int i;
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}
		int sum = 0;
		int max = Integer.MIN_VALUE;
		for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		}
		if(sum > max)
			max = sum;
		System.out.println(max);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int i;
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}
		int sum = 0;
		int max = Integer.MIN_VALUE;
		for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		}
		if(sum > max)
			max = sum;
		System.out.println(max);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int i;
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}
		int sum = 0;
		int max = Integer.MIN_VALUE;
		for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		}
		if(sum > max)
			max = sum;
		System.out.println(max);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int i; i int[] h = new int[n]; h new int[n] n for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			h[i] = scan.nextInt();
		} {
			h[i] = scan.nextInt();
		} h[i] = scan.nextInt() h[i] h i scan.nextInt() scan.nextInt scan int sum = 0; sum 0 int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		} i = 0; i = 0 i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		} {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		} if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			} h[i] >= h[i + 1] h[i] h i h[i + 1] h i + 1 i 1 {
				sum++;
			} sum++ sum {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			} if(sum > max) {
					max = sum;
				} sum > max sum max {
					max = sum;
				} max = sum max sum sum = 0 sum 0 if(sum > max)
			max = sum; sum > max sum max max = sum max sum System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int i;
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}
		int sum = 0;
		int max = Integer.MIN_VALUE;
		for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		}
		if(sum > max)
			max = sum;
		System.out.println(max);
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int i;
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}
		int sum = 0;
		int max = Integer.MIN_VALUE;
		for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		}
		if(sum > max)
			max = sum;
		System.out.println(max);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int i;
		int[] h = new int[n];
		for(i = 0; i < n; i++) {
			h[i] = scan.nextInt();
		}
		int sum = 0;
		int max = Integer.MIN_VALUE;
		for(i = 0; i < n - 1; i++) {
			if(h[i] >= h[i + 1]) {
				sum++;
			}else {
				if(sum > max) {
					max = sum;
				}
				sum = 0;
			}
		}
		if(sum > max)
			max = sum;
		System.out.println(max);
	}
}