import java.util.Scanner;
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();
	    }
	    scan.close();
	    int cnt=0;
	    int max=0;
	    for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    }

	    System.out.println(max);

	}

} 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 h[]= new int[n];
	    for(int i=0;i<n;i++) {
	    	h[i]=scan.nextInt();
	    }
	    scan.close();
	    int cnt=0;
	    int max=0;
	    for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    }

	    System.out.println(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();
	    }
	    scan.close();
	    int cnt=0;
	    int max=0;
	    for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    }

	    System.out.println(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();
	    }
	    scan.close();
	    int cnt=0;
	    int max=0;
	    for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    }

	    System.out.println(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 scan.close() scan.close scan int cnt=0; cnt 0 int max=0; max 0 for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    } int i=n-2; int i=n-2; i n-2 n 2 i>=0 i 0 i-- i-- i {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    } {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    } if(h[i+1]<=h[i])cnt++;
	    	else cnt=0; h[i+1]<=h[i] h[i+1] h i+1 i 1 h[i] h i cnt++ cnt cnt=0 cnt 0 if(cnt>max)max=cnt; cnt>max cnt max max=cnt max cnt 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 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();
	    }
	    scan.close();
	    int cnt=0;
	    int max=0;
	    for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    }

	    System.out.println(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();
	    }
	    scan.close();
	    int cnt=0;
	    int max=0;
	    for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    }

	    System.out.println(max);

	}

} Main
import java.util.Scanner;
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();
	    }
	    scan.close();
	    int cnt=0;
	    int max=0;
	    for(int i=n-2;i>=0;i--) {
	    	if(h[i+1]<=h[i])cnt++;
	    	else cnt=0;
	    	if(cnt>max)max=cnt;
	    }

	    System.out.println(max);

	}

}
