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

public class Main {

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

	    int N = Integer.parseInt(scanner.next());
	    long[] H  = new long[N];
	    
	    for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    }

	    int m= 0;
	    int tmp=0;
        for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    }

        System.out.print(m);
	}

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

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

	    int N = Integer.parseInt(scanner.next());
	    long[] H  = new long[N];
	    
	    for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    }

	    int m= 0;
	    int tmp=0;
        for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    }

        System.out.print(m);
	}

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

	    int N = Integer.parseInt(scanner.next());
	    long[] H  = new long[N];
	    
	    for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    }

	    int m= 0;
	    int tmp=0;
        for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    }

        System.out.print(m);
	} main {
	    Scanner scanner = new Scanner(System.in);

	    int N = Integer.parseInt(scanner.next());
	    long[] H  = new long[N];
	    
	    for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    }

	    int m= 0;
	    int tmp=0;
        for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    }

        System.out.print(m);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner long[] H  = new long[N]; H new long[N] N for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
	        H[i]= Long.parseLong(scanner.next());
	    } {
	        H[i]= Long.parseLong(scanner.next());
	    } H[i]= Long.parseLong(scanner.next()) H[i] H i Long.parseLong(scanner.next()) Long.parseLong Long scanner.next() scanner.next scanner int m= 0; m 0 int tmp=0; tmp 0 for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    } int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    } {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    } if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        } H[i] >= H[i+1] H[i] H i H[i+1] H i+1 i 1 {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        } tmp++ tmp if (m < tmp) {
	        		m=tmp;
	        	} m < tmp m tmp {
	        		m=tmp;
	        	} m=tmp m tmp {
	        	tmp=0;
	        } tmp=0 tmp 0 System.out.print(m) System.out.print System.out System System.out m String[] args args public class Main {

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

	    int N = Integer.parseInt(scanner.next());
	    long[] H  = new long[N];
	    
	    for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    }

	    int m= 0;
	    int tmp=0;
        for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    }

        System.out.print(m);
	}

} public class Main {

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

	    int N = Integer.parseInt(scanner.next());
	    long[] H  = new long[N];
	    
	    for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    }

	    int m= 0;
	    int tmp=0;
        for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    }

        System.out.print(m);
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

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

	    int N = Integer.parseInt(scanner.next());
	    long[] H  = new long[N];
	    
	    for (int i=0; i<N; i++) {
	        H[i]= Long.parseLong(scanner.next());
	    }

	    int m= 0;
	    int tmp=0;
        for (int i=0; i<N-1; i++) {
	        if (H[i] >= H[i+1]) {
	        	tmp++;
	        	if (m < tmp) {
	        		m=tmp;
	        	}
	        }else {
	        	tmp=0;
	        }
	    }

        System.out.print(m);
	}

}