import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long[] H = new long[N];
		for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong();
		int ans = 0;
		int count = 0;
		for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long[] H = new long[N];
		for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong();
		int ans = 0;
		int count = 0;
		for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long[] H = new long[N];
		for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong();
		int ans = 0;
		int count = 0;
		for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long[] H = new long[N];
		for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong();
		int ans = 0;
		int count = 0;
		for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		}
		System.out.println(ans);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long[] H = new long[N]; H new long[N] N for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong(); int i = 0; int i = 0; i 0 i < H.length i H.length H H.length i++ i++ i H[i] = sc.nextLong(); H[i] = sc.nextLong() H[i] H i sc.nextLong() sc.nextLong sc int ans = 0; ans 0 int count = 0; count 0 for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		} int i = 0; int i = 0; i 0 i < H.length i H.length H H.length i++ i++ i {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		} {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		} if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			} (i + 1) < H.length && H[i] >= H[i + 1] (i + 1) < H.length (i + 1) i 1 H.length H H.length H[i] >= H[i + 1] H[i] H i H[i + 1] H i + 1 i 1 {
				count++;
			} count++ count {
				if (ans < count)
					ans = count;
				count = 0;
			} if (ans < count)
					ans = count; ans < count ans count ans = count ans count count = 0 count 0 System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long[] H = new long[N];
		for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong();
		int ans = 0;
		int count = 0;
		for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long[] H = new long[N];
		for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong();
		int ans = 0;
		int count = 0;
		for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long[] H = new long[N];
		for (int i = 0; i < H.length; i++)
			H[i] = sc.nextLong();
		int ans = 0;
		int count = 0;
		for (int i = 0; i < H.length; i++) {
			if ((i + 1) < H.length && H[i] >= H[i + 1]) {
				count++;
			} else {
				if (ans < count)
					ans = count;
				count = 0;
			}
		}
		System.out.println(ans);
		sc.close();
	}
}