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

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.nextLine());
		int[] r=new int[N];
		String[] a=sc.nextLine().split(" ");
		for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		}
		Arrays.parallelSort(r);
		System.out.println(r[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 sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.nextLine());
		int[] r=new int[N];
		String[] a=sc.nextLine().split(" ");
		for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		}
		Arrays.parallelSort(r);
		System.out.println(r[N-1]);
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.nextLine());
		int[] r=new int[N];
		String[] a=sc.nextLine().split(" ");
		for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		}
		Arrays.parallelSort(r);
		System.out.println(r[N-1]);
	} main {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.nextLine());
		int[] r=new int[N];
		String[] a=sc.nextLine().split(" ");
		for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		}
		Arrays.parallelSort(r);
		System.out.println(r[N-1]);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int N=Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int[] r=new int[N]; r new int[N] N String[] a=sc.nextLine().split(" "); a sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		} int i=0,c=0; int i=0 i 0 c=0; c 0 i<N-1 i N-1 N 1 i++ i++ i {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		} {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		} int now=Integer.parseInt(a[i]); now Integer.parseInt(a[i]) Integer.parseInt Integer a[i] a i int next=Integer.parseInt(a[i+1]); next Integer.parseInt(a[i+1]) Integer.parseInt Integer a[i+1] a i+1 i 1 if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			} now<next now next {
				c=0;
			} c=0 c 0 {
				r[i]=++c;
			} r[i]=++c r[i] r i ++c c Arrays.parallelSort(r) Arrays.parallelSort Arrays r System.out.println(r[N-1]) System.out.println System.out System System.out r[N-1] r N-1 N 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.nextLine());
		int[] r=new int[N];
		String[] a=sc.nextLine().split(" ");
		for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		}
		Arrays.parallelSort(r);
		System.out.println(r[N-1]);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.nextLine());
		int[] r=new int[N];
		String[] a=sc.nextLine().split(" ");
		for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		}
		Arrays.parallelSort(r);
		System.out.println(r[N-1]);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.nextLine());
		int[] r=new int[N];
		String[] a=sc.nextLine().split(" ");
		for(int i=0,c=0;i<N-1;i++) {
			int now=Integer.parseInt(a[i]);
			int next=Integer.parseInt(a[i+1]);
			if(now<next) {
				c=0;
			}else {
				r[i]=++c;
			}
		}
		Arrays.parallelSort(r);
		System.out.println(r[N-1]);
	}
}