
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int masu = scan.nextInt();
		long[] height = new long[masu];
		int count = 0;
		int max = 0;

		for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		}

		for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		}

		System.out.println(max);
		scan.close();

	}

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int masu = scan.nextInt();
		long[] height = new long[masu];
		int count = 0;
		int max = 0;

		for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		}

		for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		}

		System.out.println(max);
		scan.close();

	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int masu = scan.nextInt();
		long[] height = new long[masu];
		int count = 0;
		int max = 0;

		for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		}

		for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		}

		System.out.println(max);
		scan.close();

	} main {

		Scanner scan = new Scanner(System.in);

		int masu = scan.nextInt();
		long[] height = new long[masu];
		int count = 0;
		int max = 0;

		for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		}

		for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		}

		System.out.println(max);
		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int masu = scan.nextInt(); masu scan.nextInt() scan.nextInt scan long[] height = new long[masu]; height new long[masu] masu int count = 0; count 0 int max = 0; max 0 for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		} int i=0; int i=0; i 0 i<masu i masu i++ i++ i {
			height[i] = scan.nextLong();
		} {
			height[i] = scan.nextLong();
		} height[i] = scan.nextLong() height[i] height i scan.nextLong() scan.nextLong scan for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		} int i=0; int i=0; i 0 i<masu-1 i masu-1 masu 1 i++ i++ i {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		} {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		} if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			} height[i] >= height[i+1] height[i] height i height[i+1] height i+1 i 1 {
				count++;
			} count++ count {
				count = 0;
			} count = 0 count 0 if(max<count) {
				max = count;
			} max<count max count {
				max = count;
			} max = count max count System.out.println(max) System.out.println System.out System System.out max scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int masu = scan.nextInt();
		long[] height = new long[masu];
		int count = 0;
		int max = 0;

		for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		}

		for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		}

		System.out.println(max);
		scan.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int masu = scan.nextInt();
		long[] height = new long[masu];
		int count = 0;
		int max = 0;

		for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		}

		for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		}

		System.out.println(max);
		scan.close();

	}

} Main

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int masu = scan.nextInt();
		long[] height = new long[masu];
		int count = 0;
		int max = 0;

		for(int i=0;i<masu;i++) {
			height[i] = scan.nextLong();
		}

		for(int i=0;i<masu-1;i++) {
			if(height[i] >= height[i+1]) {
				count++;
			}else {
				count = 0;
			}
			if(max<count) {
				max = count;
			}
		}

		System.out.println(max);
		scan.close();

	}

}
