import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		int N = sc.nextInt();
		String[] array = new String[N];
		String str = sc.nextLine();
		str = sc.nextLine();
		array = str.split(" ");
		int max = 0;
		int count = 0;
		for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		}
		
		System.out.println(max);
		
	}

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

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		int N = sc.nextInt();
		String[] array = new String[N];
		String str = sc.nextLine();
		str = sc.nextLine();
		array = str.split(" ");
		int max = 0;
		int count = 0;
		for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		}
		
		System.out.println(max);
		
	}

} Main public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		int N = sc.nextInt();
		String[] array = new String[N];
		String str = sc.nextLine();
		str = sc.nextLine();
		array = str.split(" ");
		int max = 0;
		int count = 0;
		for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		}
		
		System.out.println(max);
		
	} main {
		Scanner sc  = new Scanner(System.in);
		int N = sc.nextInt();
		String[] array = new String[N];
		String str = sc.nextLine();
		str = sc.nextLine();
		array = str.split(" ");
		int max = 0;
		int count = 0;
		for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		}
		
		System.out.println(max);
		
	} Scanner sc  = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] array = new String[N]; array new String[N] N String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc str = sc.nextLine() str sc.nextLine() sc.nextLine sc array = str.split(" ") array str.split(" ") str.split str " " int max = 0; max 0 int count = 0; count 0 for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		} int j=0; int j=0; j 0 j<N-1 j N-1 N 1 j++ j++ j {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		} {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		} if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			} Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1]) Integer.parseInt(array[j]) Integer.parseInt Integer array[j] array j Integer.parseInt(array[j+1]) Integer.parseInt Integer array[j+1] array j+1 j 1 {
				count++;
			} count++ count {
				count = 0;
			} count = 0 count 0 if (count >= max) {
				max = count;
			} count >= max count max {
				max = count;
			} max = count max count 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 sc  = new Scanner(System.in);
		int N = sc.nextInt();
		String[] array = new String[N];
		String str = sc.nextLine();
		str = sc.nextLine();
		array = str.split(" ");
		int max = 0;
		int count = 0;
		for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		}
		
		System.out.println(max);
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		int N = sc.nextInt();
		String[] array = new String[N];
		String str = sc.nextLine();
		str = sc.nextLine();
		array = str.split(" ");
		int max = 0;
		int count = 0;
		for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		}
		
		System.out.println(max);
		
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		int N = sc.nextInt();
		String[] array = new String[N];
		String str = sc.nextLine();
		str = sc.nextLine();
		array = str.split(" ");
		int max = 0;
		int count = 0;
		for (int j=0; j<N-1; j++) {
			if (Integer.parseInt(array[j]) >= Integer.parseInt(array[j+1])) {
				count++;
			}
			else {
				count = 0;
			}
		
			if (count >= max) {
				max = count;
			}
		}
		
		System.out.println(max);
		
	}

}
