import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int cellNum = Integer.parseInt(sc.next());
		long[] cell = new long[cellNum];
		for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		}
		int moveMax = 0;
		for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		}
		System.out.println(moveMax);

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int cellNum = Integer.parseInt(sc.next());
		long[] cell = new long[cellNum];
		for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		}
		int moveMax = 0;
		for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		}
		System.out.println(moveMax);

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int cellNum = Integer.parseInt(sc.next());
		long[] cell = new long[cellNum];
		for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		}
		int moveMax = 0;
		for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		}
		System.out.println(moveMax);

	} main {
		Scanner sc = new Scanner(System.in);

		int cellNum = Integer.parseInt(sc.next());
		long[] cell = new long[cellNum];
		for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		}
		int moveMax = 0;
		for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		}
		System.out.println(moveMax);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int cellNum = Integer.parseInt(sc.next()); cellNum Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc long[] cell = new long[cellNum]; cell new long[cellNum] cellNum for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		} int i = 0; int i = 0; i 0 i < cellNum i cellNum i++ i++ i {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		} {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		} long height = Long.parseLong(sc.next()); height Long.parseLong(sc.next()) Long.parseLong Long sc.next() sc.next sc cell[i] = height cell[i] cell i height int moveMax = 0; moveMax 0 for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		} int i = 0; int i = 0; i 0 i < cellNum i cellNum i++ i++ i {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		} {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		} if (moveMax >= cell.length - i) {
				break;
			} moveMax >= cell.length - i moveMax cell.length - i cell.length cell cell.length i {
				break;
			} break; int moveCount = 0; moveCount 0 for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			} int j = i; int j = i; j i j < cellNum j cellNum j++ j++ j {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			} {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			} if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				} j < cellNum - 1 && cell[j] >= cell[j + 1] j < cellNum - 1 j cellNum - 1 cellNum 1 cell[j] >= cell[j + 1] cell[j] cell j cell[j + 1] cell j + 1 j 1 {
					moveCount++;
				} moveCount++ moveCount if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				} moveCount > moveMax moveCount moveMax {
					moveMax = moveCount;
					break;
				} moveMax = moveCount moveMax moveCount break; {
					break;
				} break; System.out.println(moveMax) System.out.println System.out System System.out moveMax String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int cellNum = Integer.parseInt(sc.next());
		long[] cell = new long[cellNum];
		for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		}
		int moveMax = 0;
		for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		}
		System.out.println(moveMax);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int cellNum = Integer.parseInt(sc.next());
		long[] cell = new long[cellNum];
		for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		}
		int moveMax = 0;
		for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		}
		System.out.println(moveMax);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int cellNum = Integer.parseInt(sc.next());
		long[] cell = new long[cellNum];
		for (int i = 0; i < cellNum; i++) {
			long height = Long.parseLong(sc.next());
			cell[i] = height;
		}
		int moveMax = 0;
		for (int i = 0; i < cellNum; i++) {
			if (moveMax >= cell.length - i) {
				break;
			}
			int moveCount = 0;
			for (int j = i; j < cellNum; j++) {
				if (j < cellNum - 1 && cell[j] >= cell[j + 1]) {
					moveCount++;
				} else if (moveCount > moveMax) {
					moveMax = moveCount;
					break;
				} else {
					break;
				}
			}
		}
		System.out.println(moveMax);

	}

}
