import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int max = 0;
		for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		}
		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int max = 0;
		for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		}
		System.out.println(max);
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int max = 0;
		for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		}
		System.out.println(max);
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int max = 0;
		for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		}
		System.out.println(max);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int max = 0; max 0 for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		} int i = 0, h, left = scanner.nextInt(), count = 0; int i = 0 i 0 h h left = scanner.nextInt() left scanner.nextInt() scanner.nextInt scanner count = 0; count 0 i < n - 1 i n - 1 n 1 i++ i++ i {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		} {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		} h = scanner.nextInt() h scanner.nextInt() scanner.nextInt scanner if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0; h <= left h left {
				count++;
				if (count > max)
					max = count;
			} count++ count if (count > max)
					max = count; count > max count max max = count max count count = 0 count 0 left = h left h 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 scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int max = 0;
		for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		}
		System.out.println(max);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int max = 0;
		for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		}
		System.out.println(max);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int max = 0;
		for (int i = 0, h, left = scanner.nextInt(), count = 0; i < n - 1; i++) {
			h = scanner.nextInt();
			if (h <= left) {
				count++;
				if (count > max)
					max = count;
			} else
				count = 0;
			left = h;
		}
		System.out.println(max);
	}
}