import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int max = 0;
		int answer = 0;

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

		for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		}

		System.out.println(max);
	}
} 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();
		int H[] = new int[N];
		int max = 0;
		int answer = 0;

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

		for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		}

		System.out.println(max);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int max = 0;
		int answer = 0;

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

		for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		}

		System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int max = 0;
		int answer = 0;

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

		for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		}

		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 int H[] = new int[N]; H new int[N] N int max = 0; max 0 int answer = 0; answer 0 for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			H[i] = sc.nextInt();
		} {
			H[i] = sc.nextInt();
		} H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		} int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		} {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		} answer = 0 answer 0 for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			} int j = 0; int j = 0; j 0 j < N - i - 1 j N - i - 1 N - i - 1 N i 1 j++ j++ j {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			} {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			} if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				} H[i + j] < H[i + j + 1] H[i + j] H i + j i j H[i + j + 1] H i + j + 1 i + j + 1 i j 1 {
					break;
				} break; {
					answer++;
				} answer++ answer if (max < answer) max = answer; max < answer max answer max = answer max answer if (N - i <= max) break; N - i <= max N - i N i max break; 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();
		int H[] = new int[N];
		int max = 0;
		int answer = 0;

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

		for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		}

		System.out.println(max);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int max = 0;
		int answer = 0;

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

		for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		}

		System.out.println(max);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int max = 0;
		int answer = 0;

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

		for (int i = 0; i < N - 1; i++) {
			answer = 0;
			for (int j = 0; j < N - i - 1; j++) {
				if (H[i + j] < H[i + j + 1]) {
					break;
				} else {
					answer++;
				}
			}
			if (max < answer) max = answer;
			if (N - i <= max) break;
		}

		System.out.println(max);
	}
}
