import java.io.*;
import java.util.*;

public class Main {

    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; }
        String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
    }

    static InputReader r = new InputReader(System.in);
    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) {
        
        int n = r.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        }

        int temp = 0;
        int max = 0;
        for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        }
        
        pw.println(max);

        pw.close();
    }
}

/**
                _        _                 _                                                
               | |      | |               | |                                               
   ___ ___   __| | ___  | |__  _   _    __| | __ _ _ __ _ __ ___ _ __     _   _  __ _  ___  
  / __/ _ \ / _` |/ _ \ | '_ \| | | |  / _` |/ _` | '__| '__/ _ \ '_ \   | | | |/ _` |/ _ \ 
 | (_| (_) | (_| |  __/ | |_) | |_| | | (_| | (_| | |  | | |  __/ | | |  | |_| | (_| | (_) |
  \___\___/ \__,_|\___| |_.__/ \__, |  \__,_|\__,_|_|  |_|  \___|_| |_|   \__, |\__,_|\___/ 
                                __/ |                               ______ __/ |            
                               |___/                               |______|___/             
 */ import java.io.*; io.* java import java.util.*; util.* java public class Main {

    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; }
        String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
    }

    static InputReader r = new InputReader(System.in);
    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) {
        
        int n = r.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        }

        int temp = 0;
        int max = 0;
        for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        }
        
        pw.println(max);

        pw.close();
    }
} Main static InputReader r = new InputReader(System.in); r new InputReader(System.in) static PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) public static void main(String[] args) {
        
        int n = r.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        }

        int temp = 0;
        int max = 0;
        for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        }
        
        pw.println(max);

        pw.close();
    } main {
        
        int n = r.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        }

        int temp = 0;
        int max = 0;
        for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        }
        
        pw.println(max);

        pw.close();
    } int n = r.nextInt(); n r.nextInt() r.nextInt r int[] arr = new int[n]; arr new int[n] n for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            arr[i] = r.nextInt();
        } {
            arr[i] = r.nextInt();
        } arr[i] = r.nextInt() arr[i] arr i r.nextInt() r.nextInt r int temp = 0; temp 0 int max = 0; max 0 for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        } {
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        } if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            } arr[i] <= arr[i-1] arr[i] arr i arr[i-1] arr i-1 i 1 {
                temp++;
            } temp++ temp {
                temp = 0;
            } temp = 0 temp 0 max = Math.max(max, temp) max Math.max(max, temp) Math.max Math max temp pw.println(max) pw.println pw max pw.close() pw.close pw String[] args args static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; }
        String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
    } InputReader BufferedReader reader; reader StringTokenizer tokenizer; tokenizer public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; } InputReader {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; } reader = new BufferedReader(new InputStreamReader(stream), 32768) reader new BufferedReader(new InputStreamReader(stream), 32768) tokenizer = null tokenizer null InputStream stream stream String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); } next { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); } while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} } tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} } try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} catch (IOException e) { throw new RuntimeException(e);} IOException e { throw new RuntimeException(e);} throw new RuntimeException(e); new RuntimeException(e) { tokenizer = new StringTokenizer(reader.readLine()); } tokenizer = new StringTokenizer(reader.readLine()) tokenizer new StringTokenizer(reader.readLine()) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer public int nextInt() { return Integer.parseInt(next()); } nextInt { return Integer.parseInt(next()); } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() { return Long.parseLong(next()); } nextLong { return Long.parseLong(next()); } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public double nextDouble() { return Double.parseDouble(next()); } nextDouble { return Double.parseDouble(next()); } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public class Main {

    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; }
        String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
    }

    static InputReader r = new InputReader(System.in);
    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) {
        
        int n = r.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        }

        int temp = 0;
        int max = 0;
        for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        }
        
        pw.println(max);

        pw.close();
    }
} public class Main {

    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; }
        String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
    }

    static InputReader r = new InputReader(System.in);
    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) {
        
        int n = r.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        }

        int temp = 0;
        int max = 0;
        for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        }
        
        pw.println(max);

        pw.close();
    }
} Main
import java.io.*;
import java.util.*;

public class Main {

    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; }
        String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
    }

    static InputReader r = new InputReader(System.in);
    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) {
        
        int n = r.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++){
            arr[i] = r.nextInt();
        }

        int temp = 0;
        int max = 0;
        for(int i = 1; i < n; i++){
            if(arr[i] <= arr[i-1]){
                temp++;
            } else{
                temp = 0;
            }
            max = Math.max(max, temp);
        }
        
        pw.println(max);

        pw.close();
    }
}

/**
                _        _                 _                                                
               | |      | |               | |                                               
   ___ ___   __| | ___  | |__  _   _    __| | __ _ _ __ _ __ ___ _ __     _   _  __ _  ___  
  / __/ _ \ / _` |/ _ \ | '_ \| | | |  / _` |/ _` | '__| '__/ _ \ '_ \   | | | |/ _` |/ _ \ 
 | (_| (_) | (_| |  __/ | |_) | |_| | | (_| | (_| | |  | | |  __/ | | |  | |_| | (_| | (_) |
  \___\___/ \__,_|\___| |_.__/ \__, |  \__,_|\__,_|_|  |_|  \___|_| |_|   \__, |\__,_|\___/ 
                                __/ |                               ______ __/ |            
                               |___/                               |______|___/             
 */