import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n + 1];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        h[n] = h[n - 1] + 1;
        sc.close();
        int s = 0 , a = 0;
        for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        }
        System.out.println(s);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n + 1];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        h[n] = h[n - 1] + 1;
        sc.close();
        int s = 0 , a = 0;
        for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        }
        System.out.println(s);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n + 1];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        h[n] = h[n - 1] + 1;
        sc.close();
        int s = 0 , a = 0;
        for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        }
        System.out.println(s);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n + 1];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        h[n] = h[n - 1] + 1;
        sc.close();
        int s = 0 , a = 0;
        for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        }
        System.out.println(s);
    } 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 + 1]; h new int[n + 1] n + 1 n 1 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 h[n] = h[n - 1] + 1 h[n] h n h[n - 1] + 1 h[n - 1] h n - 1 n 1 1 sc.close() sc.close sc int s = 0 s 0 a = 0; a 0 for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        } {
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        } if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            } h[i] >= h[i + 1] h[i] h i h[i + 1] h i + 1 i 1 {
                a++;
            } a++ a {
                if(s < a){
                    s = a;
                }
                a = 0;
            } if(s < a){
                    s = a;
                } s < a s a {
                    s = a;
                } s = a s a a = 0 a 0 System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n + 1];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        h[n] = h[n - 1] + 1;
        sc.close();
        int s = 0 , a = 0;
        for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        }
        System.out.println(s);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n + 1];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        h[n] = h[n - 1] + 1;
        sc.close();
        int s = 0 , a = 0;
        for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        }
        System.out.println(s);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n + 1];
        for(int i = 0 ; i < n ; i++ ){
            h[i] = sc.nextInt();
        }
        h[n] = h[n - 1] + 1;
        sc.close();
        int s = 0 , a = 0;
        for(int i = 0 ; i < n ; i++){
            if(h[i] >= h[i + 1]){
                a++;
            }else{
                if(s < a){
                    s = a;
                }
                a = 0;
            }
        }
        System.out.println(s);
    }
}