import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int[]counta=new int[n];
		int count=0;
		int []block=new int[n];
		for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		}
		Arrays.sort(counta);
		System.out.println(counta[n-1]);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int[]counta=new int[n];
		int count=0;
		int []block=new int[n];
		for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		}
		Arrays.sort(counta);
		System.out.println(counta[n-1]);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int[]counta=new int[n];
		int count=0;
		int []block=new int[n];
		for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		}
		Arrays.sort(counta);
		System.out.println(counta[n-1]);
	} main {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int[]counta=new int[n];
		int count=0;
		int []block=new int[n];
		for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		}
		Arrays.sort(counta);
		System.out.println(counta[n-1]);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int[]counta=new int[n]; counta new int[n] n int count=0; count 0 int []block=new int[n]; block new int[n] n for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		} {
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		} block[i]=scan.nextInt() block[i] block i scan.nextInt() scan.nextInt scan if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			} 0<i 0 i {
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			} if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				} block[i]<=block[i-1] block[i] block i block[i-1] block i-1 i 1 {
					count++;
				} count++ count {
					counta[i]=count;
					count=0;
				} counta[i]=count counta[i] counta i count count=0 count 0 if(i==n-1){
				counta[i]=count;
			} i==n-1 i n-1 n 1 {
				counta[i]=count;
			} counta[i]=count counta[i] counta i count Arrays.sort(counta) Arrays.sort Arrays counta System.out.println(counta[n-1]) System.out.println System.out System System.out counta[n-1] counta n-1 n 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int[]counta=new int[n];
		int count=0;
		int []block=new int[n];
		for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		}
		Arrays.sort(counta);
		System.out.println(counta[n-1]);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int[]counta=new int[n];
		int count=0;
		int []block=new int[n];
		for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		}
		Arrays.sort(counta);
		System.out.println(counta[n-1]);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		int[]counta=new int[n];
		int count=0;
		int []block=new int[n];
		for(int i=0;i<n;i++){
			block[i]=scan.nextInt();
			if(0<i){
				if(block[i]<=block[i-1]){
					count++;
				}else{
					counta[i]=count;
					count=0;
				}
			}
			if(i==n-1){
				counta[i]=count;
			}
		}
		Arrays.sort(counta);
		System.out.println(counta[n-1]);
	}
}
