import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        }
    }

} import java.io.BufferedInputStream; BufferedInputStream java.io import java.io.BufferedOutputStream; BufferedOutputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        }
    }

} Main public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        }
    } main {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        }
    } try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        } {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        } BufferedInputStream in = new BufferedInputStream(System.in) BufferedInputStream in = new BufferedInputStream(System.in) new BufferedInputStream(System.in) PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out)) PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out)) new PrintWriter(new BufferedOutputStream(System.out)) Scanner sc = new Scanner(in); sc new Scanner(in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int max = 0; max 0 int cur = -1; cur -1 1 int last = Integer.MAX_VALUE; last Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            } {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                } h <= last h last {
                    cur++;
                    max = Math.max(max, cur);
                } cur++ cur max = Math.max(max, cur) max Math.max(max, cur) Math.max Math max cur {
                    cur = 0;
                } cur = 0 cur 0 last = h last h out.println(max) out.println out max String[] args args public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        }
    }

} public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        }
    }

} Main
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            // 15:38-

            int n = sc.nextInt();
            int max = 0;
            int cur = -1;
            int last = Integer.MAX_VALUE;

            for (int i = 0; i < n; i++) {
                int h = sc.nextInt();
                if (h <= last) {
                    cur++;
                    max = Math.max(max, cur);
                } else {
                    cur = 0;
                }
                last = h;
            }

            out.println(max);

        }
    }

}
