import java.awt.*;
import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.*;
import java.util.List;

public class Main {

    static String br = System.getProperty("line.separator");
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        int N = nextInt();
        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = nextInt();
        }

        int before = H[0];
        int count = 0;
        int max = 0;
        for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        }
        println(max);
    }

    static int nextInt() {
        return Integer.parseInt(next());
    }

    static Long nextLong() {
        return Long.parseLong(next());
    }

    static String next() {
        return sc.next();
    }

    static String nextLine(){
        return sc.nextLine();
    }

    static void println(Object o) {
        out.println(o);
        out.flush();
    }

    static void print(Object o) {
        PrintWriter out = new PrintWriter(System.out);
        out.print(o);
        out.flush();
    }
} import java.awt.*; awt.* java import java.io.PrintWriter; PrintWriter java.io import java.lang.reflect.Array; Array java.lang.reflect import java.math.BigInteger; BigInteger java.math import java.util.*; util.* java import java.util.List; List java.util public class Main {

    static String br = System.getProperty("line.separator");
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        int N = nextInt();
        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = nextInt();
        }

        int before = H[0];
        int count = 0;
        int max = 0;
        for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        }
        println(max);
    }

    static int nextInt() {
        return Integer.parseInt(next());
    }

    static Long nextLong() {
        return Long.parseLong(next());
    }

    static String next() {
        return sc.next();
    }

    static String nextLine(){
        return sc.nextLine();
    }

    static void println(Object o) {
        out.println(o);
        out.flush();
    }

    static void print(Object o) {
        PrintWriter out = new PrintWriter(System.out);
        out.print(o);
        out.flush();
    }
} Main static String br = System.getProperty("line.separator"); br System.getProperty("line.separator") System.getProperty System "line.separator" static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) public static void main(String[] args) {
        int N = nextInt();
        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = nextInt();
        }

        int before = H[0];
        int count = 0;
        int max = 0;
        for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        }
        println(max);
    } main {
        int N = nextInt();
        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = nextInt();
        }

        int before = H[0];
        int count = 0;
        int max = 0;
        for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        }
        println(max);
    } int N = nextInt(); N nextInt() nextInt int[] H = new int[N]; H new int[N] N for(int i=0; i<N; i++){
            H[i] = nextInt();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            H[i] = nextInt();
        } {
            H[i] = nextInt();
        } H[i] = nextInt() H[i] H i nextInt() nextInt int before = H[0]; before H[0] H 0 int count = 0; count 0 int max = 0; max 0 for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        } int i=1; int i=1; i 1 i<N i N i++ i++ i {
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        } {
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        } if(before >= H[i]){
                count++;
            }else{
                count = 0;
            } before >= H[i] before H[i] H i {
                count++;
            } count++ count {
                count = 0;
            } count = 0 count 0 max = Math.max(max, count) max Math.max(max, count) Math.max Math max count before = H[i] before H[i] H i println(max) println max String[] args args static int nextInt() {
        return Integer.parseInt(next());
    } nextInt {
        return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next static Long nextLong() {
        return Long.parseLong(next());
    } nextLong {
        return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next static String next() {
        return sc.next();
    } next {
        return sc.next();
    } return sc.next(); sc.next() sc.next sc static String nextLine(){
        return sc.nextLine();
    } nextLine {
        return sc.nextLine();
    } return sc.nextLine(); sc.nextLine() sc.nextLine sc static void println(Object o) {
        out.println(o);
        out.flush();
    } println {
        out.println(o);
        out.flush();
    } out.println(o) out.println out o out.flush() out.flush out Object o o static void print(Object o) {
        PrintWriter out = new PrintWriter(System.out);
        out.print(o);
        out.flush();
    } print {
        PrintWriter out = new PrintWriter(System.out);
        out.print(o);
        out.flush();
    } PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) out.print(o) out.print out o out.flush() out.flush out Object o o public class Main {

    static String br = System.getProperty("line.separator");
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        int N = nextInt();
        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = nextInt();
        }

        int before = H[0];
        int count = 0;
        int max = 0;
        for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        }
        println(max);
    }

    static int nextInt() {
        return Integer.parseInt(next());
    }

    static Long nextLong() {
        return Long.parseLong(next());
    }

    static String next() {
        return sc.next();
    }

    static String nextLine(){
        return sc.nextLine();
    }

    static void println(Object o) {
        out.println(o);
        out.flush();
    }

    static void print(Object o) {
        PrintWriter out = new PrintWriter(System.out);
        out.print(o);
        out.flush();
    }
} public class Main {

    static String br = System.getProperty("line.separator");
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        int N = nextInt();
        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = nextInt();
        }

        int before = H[0];
        int count = 0;
        int max = 0;
        for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        }
        println(max);
    }

    static int nextInt() {
        return Integer.parseInt(next());
    }

    static Long nextLong() {
        return Long.parseLong(next());
    }

    static String next() {
        return sc.next();
    }

    static String nextLine(){
        return sc.nextLine();
    }

    static void println(Object o) {
        out.println(o);
        out.flush();
    }

    static void print(Object o) {
        PrintWriter out = new PrintWriter(System.out);
        out.print(o);
        out.flush();
    }
} Main
import java.awt.*;
import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.*;
import java.util.List;

public class Main {

    static String br = System.getProperty("line.separator");
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        int N = nextInt();
        int[] H = new int[N];
        for(int i=0; i<N; i++){
            H[i] = nextInt();
        }

        int before = H[0];
        int count = 0;
        int max = 0;
        for(int i=1; i<N; i++){
            if(before >= H[i]){
                count++;
            }else{
                count = 0;
            }
            max = Math.max(max, count);
            before = H[i];
        }
        println(max);
    }

    static int nextInt() {
        return Integer.parseInt(next());
    }

    static Long nextLong() {
        return Long.parseLong(next());
    }

    static String next() {
        return sc.next();
    }

    static String nextLine(){
        return sc.nextLine();
    }

    static void println(Object o) {
        out.println(o);
        out.flush();
    }

    static void print(Object o) {
        PrintWriter out = new PrintWriter(System.out);
        out.print(o);
        out.flush();
    }
}
