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];
        if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        }
        sc.close();
    }
} 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];
        if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        }
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        }
        sc.close();
    } 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 if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        } n == 1 n 1 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        } n >= 2 n 2 {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        } int[] len = new int[n - 1]; len new int[n - 1] n - 1 n 1 for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            } int i = 0; int i = 0; i 0 i < h.length i h.length h h.length i++ i++ i {
                h[i] = sc.nextInt();
            } {
                h[i] = sc.nextInt();
            } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            } int i = 0; int i = 0; i 0 i < len.length i len.length len len.length i++ i++ i {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            } {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            } if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                } h[i] >= h[i + 1] h[i] h i h[i + 1] h i + 1 i 1 {
                    len[i] = 1;
                } len[i] = 1 len[i] len i 1 {
                    len[i] = 0;
                } len[i] = 0 len[i] len i 0 List<Integer> memory = new ArrayList<>(); memory new ArrayList<>() int counter = 0; counter 0 for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            } int i = 0; int i = 0; i 0 i < len.length i len.length len len.length i++ i++ i {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            } {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            } if (len[i] == 1) {
                    counter++;
                } len[i] == 1 len[i] len i 1 {
                    counter++;
                } counter++ counter if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                } len[i] == 0 || i == len.length - 1 len[i] == 0 len[i] len i 0 i == len.length - 1 i len.length - 1 len.length len len.length 1 {
                    memory.add(counter);
                    counter = 0;
                } memory.add(counter) memory.add memory counter counter = 0 counter 0 int max = memory.get(0); max memory.get(0) memory.get memory 0 for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            } int i memory {
                if (i > max) {
                    max = i;
                }
            } {
                if (i > max) {
                    max = i;
                }
            } if (i > max) {
                    max = i;
                } i > max i max {
                    max = i;
                } max = i max i System.out.println(max) System.out.println System.out System System.out max sc.close() sc.close sc 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];
        if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        }
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        }
        sc.close();
    }
} 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];
        if (n == 1) {
            System.out.println(0);
        } else if (n >= 2) {
            int[] len = new int[n - 1];
            for (int i = 0; i < h.length; i++) {
                h[i] = sc.nextInt();
            }
            for (int i = 0; i < len.length; i++) {
                if (h[i] >= h[i + 1]) {
                    len[i] = 1;
                } else {
                    len[i] = 0;
                }
            }
            List<Integer> memory = new ArrayList<>();
            int counter = 0;
            for (int i = 0; i < len.length; i++) {
                if (len[i] == 1) {
                    counter++;
                }
                if (len[i] == 0 || i == len.length - 1) {
                    memory.add(counter);
                    counter = 0;
                }
            }
            int max = memory.get(0);
            for (int i : memory) {
                if (i > max) {
                    max = i;
                }
            }
            System.out.println(max);
        }
        sc.close();
    }
}