import java.util.*;
public class Main {

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

		int N=scan.nextInt();
		int[] H=new int[N];
		
		for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		}
		int max=0;
		int count=0;
		int last=H[0];
		
		for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		}
		System.out.print(max);
}

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

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

		int N=scan.nextInt();
		int[] H=new int[N];
		
		for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		}
		int max=0;
		int count=0;
		int last=H[0];
		
		for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		}
		System.out.print(max);
}

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

		int N=scan.nextInt();
		int[] H=new int[N];
		
		for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		}
		int max=0;
		int count=0;
		int last=H[0];
		
		for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		}
		System.out.print(max);
} main {
		Scanner scan =new Scanner(System.in);

		int N=scan.nextInt();
		int[] H=new int[N];
		
		for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		}
		int max=0;
		int count=0;
		int last=H[0];
		
		for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		}
		System.out.print(max);
} Scanner scan =new Scanner(System.in); scan new Scanner(System.in) int N=scan.nextInt(); N scan.nextInt() scan.nextInt scan int[] H=new int[N]; H new int[N] N for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			H[i]=scan.nextInt();
		} {
			H[i]=scan.nextInt();
		} H[i]=scan.nextInt() H[i] H i scan.nextInt() scan.nextInt scan int max=0; max 0 int count=0; count 0 int last=H[0]; last H[0] H 0 for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		} int i=1; int i=1; i 1 i<H.length i H.length H H.length i++ i++ i {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		} {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		} if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			} last>=H[i] last H[i] H i {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			} count+=1 count 1 if (count>max) {
					max=count;
					
				} count>max count max {
					max=count;
					
				} max=count max count {
				count=0;
			} count=0 count 0 last=H[i] last H[i] H i System.out.print(max) System.out.print System.out System System.out max String[] args args public class Main {

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

		int N=scan.nextInt();
		int[] H=new int[N];
		
		for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		}
		int max=0;
		int count=0;
		int last=H[0];
		
		for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		}
		System.out.print(max);
}

} public class Main {

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

		int N=scan.nextInt();
		int[] H=new int[N];
		
		for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		}
		int max=0;
		int count=0;
		int last=H[0];
		
		for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		}
		System.out.print(max);
}

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

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

		int N=scan.nextInt();
		int[] H=new int[N];
		
		for (int i=0;i<N;i++) {
			H[i]=scan.nextInt();
		}
		int max=0;
		int count=0;
		int last=H[0];
		
		for(int i=1;i<H.length;i++) {
			if (last>=H[i]) {
				count+=1;
				if (count>max) {
					max=count;
					
				}
				
			}else {
				count=0;
			}
		last=H[i];
		}
		System.out.print(max);
}

}