import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int a[] = new int[N];

		for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		}

		int max = 0;
		int count = 0;

		for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		}
		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 a[] = new int[N];

		for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		}

		int max = 0;
		int count = 0;

		for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		}
		System.out.println(max);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int a[] = new int[N];

		for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		}

		int max = 0;
		int count = 0;

		for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		}
		System.out.println(max);
	} main {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int a[] = new int[N];

		for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		}

		int max = 0;
		int count = 0;

		for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		}
		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 a[] = new int[N]; a new int[N] N for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			a[i] = scan.nextInt();
		} {
			a[i] = scan.nextInt();
		} a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan int max = 0; max 0 int count = 0; count 0 for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		} int i  = 0; int i  = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		} {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		} if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			} a[i + 1] <= a[i] a[i + 1] a i + 1 i 1 a[i] a i {
				count++;
			} count++ count {
				count = 0;
			} count = 0 count 0 if(max < count) {
				max = count;
			} max < count max count {
				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 scan = new Scanner(System.in);

		int N = scan.nextInt();
		int a[] = new int[N];

		for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		}

		int max = 0;
		int count = 0;

		for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		}
		System.out.println(max);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int a[] = new int[N];

		for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		}

		int max = 0;
		int count = 0;

		for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		}
		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 a[] = new int[N];

		for(int i = 0; i < N; i++) {
			a[i] = scan.nextInt();
		}

		int max = 0;
		int count = 0;

		for(int i  = 0; i < N - 1; i++) {
			if(a[i + 1] <= a[i]) {
				count++;
			}else {
				count = 0;
			}
			if(max < count) {
				max = count;
			}
		}
		System.out.println(max);
	}
}