import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        
        for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        }
        
        int tmp = h[0];
        List<Integer> counts = new ArrayList<>();
        int count = 0;
        for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        }
        counts.add(count);
        
        System.out.println(Collections.max(counts));
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        
        for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        }
        
        int tmp = h[0];
        List<Integer> counts = new ArrayList<>();
        int count = 0;
        for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        }
        counts.add(count);
        
        System.out.println(Collections.max(counts));
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        
        for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        }
        
        int tmp = h[0];
        List<Integer> counts = new ArrayList<>();
        int count = 0;
        for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        }
        counts.add(count);
        
        System.out.println(Collections.max(counts));
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        
        for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        }
        
        int tmp = h[0];
        List<Integer> counts = new ArrayList<>();
        int count = 0;
        for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        }
        counts.add(count);
        
        System.out.println(Collections.max(counts));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] h = new int[n]; h new int[n] n for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            h[i] = sc.nextInt();
        } {
            h[i] = sc.nextInt();
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int tmp = h[0]; tmp h[0] h 0 List<Integer> counts = new ArrayList<>(); counts new ArrayList<>() int count = 0; count 0 for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        } int j=1; int j=1; j 1 j<n j n j++ j++ j {
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        } {
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        } if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            } tmp >= h[j] tmp h[j] h j {
                count++;
            } count++ count {
                counts.add(count);
                count = 0;
            } counts.add(count) counts.add counts count count = 0 count 0 tmp = h[j] tmp h[j] h j counts.add(count) counts.add counts count System.out.println(Collections.max(counts)) System.out.println System.out System System.out Collections.max(counts) Collections.max Collections counts String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        
        for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        }
        
        int tmp = h[0];
        List<Integer> counts = new ArrayList<>();
        int count = 0;
        for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        }
        counts.add(count);
        
        System.out.println(Collections.max(counts));
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        
        for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        }
        
        int tmp = h[0];
        List<Integer> counts = new ArrayList<>();
        int count = 0;
        for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        }
        counts.add(count);
        
        System.out.println(Collections.max(counts));
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        
        for(int i=0; i<n; i++){
            h[i] = sc.nextInt();
        }
        
        int tmp = h[0];
        List<Integer> counts = new ArrayList<>();
        int count = 0;
        for(int j=1; j<n; j++){
            if(tmp >= h[j]){
                count++;
            }
            else{
                counts.add(count);
                count = 0;
            }
            tmp = h[j];
        }
        counts.add(count);
        
        System.out.println(Collections.max(counts));
    }
}