import java.util.Scanner;

public class Main{

	static int max = 0;
	static int n;
	static int a[] = new int[100000];

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}

		for (int i = 0; i < n;) {
			i += calc(i);
		}
		System.out.println(max);
	}

	public static int calc(int i) {
		int count = 0;
		while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		}
		if (count > max)
			max = count;
		if (count == 0)
			return 1;
		return count;
	}

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

	static int max = 0;
	static int n;
	static int a[] = new int[100000];

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}

		for (int i = 0; i < n;) {
			i += calc(i);
		}
		System.out.println(max);
	}

	public static int calc(int i) {
		int count = 0;
		while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		}
		if (count > max)
			max = count;
		if (count == 0)
			return 1;
		return count;
	}

} Main static int max = 0; max 0 static int n; n static int a[] = new int[100000]; a new int[100000] 100000 public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}

		for (int i = 0; i < n;) {
			i += calc(i);
		}
		System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}

		for (int i = 0; i < n;) {
			i += calc(i);
		}
		System.out.println(max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = sc.nextInt();
		} {
			a[i] = sc.nextInt();
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for (int i = 0; i < n;) {
			i += calc(i);
		} int i = 0; int i = 0; i 0 i < n i n {
			i += calc(i);
		} {
			i += calc(i);
		} i += calc(i) i calc(i) calc i System.out.println(max) System.out.println System.out System System.out max String[] args args public static int calc(int i) {
		int count = 0;
		while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		}
		if (count > max)
			max = count;
		if (count == 0)
			return 1;
		return count;
	} calc {
		int count = 0;
		while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		}
		if (count > max)
			max = count;
		if (count == 0)
			return 1;
		return count;
	} int count = 0; count 0 while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		} i < n - 1 && a[i] >= a[i + 1] i < n - 1 i n - 1 n 1 a[i] >= a[i + 1] a[i] a i a[i + 1] a i + 1 i 1 {
			i++;
			count++;
		} i++ i count++ count if (count > max)
			max = count; count > max count max max = count max count if (count == 0)
			return 1; count == 0 count 0 return 1; 1 return count; count int i i public class Main{

	static int max = 0;
	static int n;
	static int a[] = new int[100000];

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}

		for (int i = 0; i < n;) {
			i += calc(i);
		}
		System.out.println(max);
	}

	public static int calc(int i) {
		int count = 0;
		while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		}
		if (count > max)
			max = count;
		if (count == 0)
			return 1;
		return count;
	}

} public class Main{

	static int max = 0;
	static int n;
	static int a[] = new int[100000];

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}

		for (int i = 0; i < n;) {
			i += calc(i);
		}
		System.out.println(max);
	}

	public static int calc(int i) {
		int count = 0;
		while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		}
		if (count > max)
			max = count;
		if (count == 0)
			return 1;
		return count;
	}

} Main
import java.util.Scanner;

public class Main{

	static int max = 0;
	static int n;
	static int a[] = new int[100000];

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}

		for (int i = 0; i < n;) {
			i += calc(i);
		}
		System.out.println(max);
	}

	public static int calc(int i) {
		int count = 0;
		while (i < n - 1 && a[i] >= a[i + 1]) {
			i++;
			count++;
		}
		if (count > max)
			max = count;
		if (count == 0)
			return 1;
		return count;
	}

}
