import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        int d = 0;
        int c=0;
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        }
        System.out.println(c);
    }
}
 import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        int d = 0;
        int c=0;
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        }
        System.out.println(c);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        int d = 0;
        int c=0;
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        }
        System.out.println(c);
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        int d = 0;
        int c=0;
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        }
        System.out.println(c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] b = new int[a]; b new int[a] a int d = 0; d 0 int c=0; c 0 for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        } {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        } b[i] = sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            } i >= 1 i 1 {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            } if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                } b[i - 1] - b[i] >= 0 b[i - 1] - b[i] b[i - 1] b i - 1 i 1 b[i] b i 0 {
                    d++;
                    c=Math.max(c, d);
                } d++ d c=Math.max(c, d) c Math.max(c, d) Math.max Math c d {
                    d = 0;
                } d = 0 d 0 System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        int d = 0;
        int c=0;
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        }
        System.out.println(c);
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        int d = 0;
        int c=0;
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        }
        System.out.println(c);
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int[] b = new int[a];
        int d = 0;
        int c=0;
        for (int i = 0; i < a; i++) {
            b[i] = sc.nextInt();
            if (i >= 1) {
                if (b[i - 1] - b[i] >= 0) {
                    d++;
                    c=Math.max(c, d);
                } else {
                    d = 0;
                }
            }
        }
        System.out.println(c);
    }
}

