import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.valueOf(scanner.nextLine());
        String[] hAry = scanner.nextLine().split(" ");
        int ans = 0;
        int counter = 0;
        int prev = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.valueOf(scanner.nextLine());
        String[] hAry = scanner.nextLine().split(" ");
        int ans = 0;
        int counter = 0;
        int prev = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.valueOf(scanner.nextLine());
        String[] hAry = scanner.nextLine().split(" ");
        int ans = 0;
        int counter = 0;
        int prev = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        }
        System.out.println(ans);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.valueOf(scanner.nextLine());
        String[] hAry = scanner.nextLine().split(" ");
        int ans = 0;
        int counter = 0;
        int prev = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        }
        System.out.println(ans);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.valueOf(scanner.nextLine()); n Integer.valueOf(scanner.nextLine()) Integer.valueOf Integer scanner.nextLine() scanner.nextLine scanner String[] hAry = scanner.nextLine().split(" "); hAry scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int ans = 0; ans 0 int counter = 0; counter 0 int prev = 0; prev 0 for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        } {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        } int h = Integer.valueOf(hAry[i]); h Integer.valueOf(hAry[i]) Integer.valueOf Integer hAry[i] hAry i if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            } h <= prev h prev {
                counter++;
                if (counter > ans) ans = counter;
            } counter++ counter if (counter > ans) ans = counter; counter > ans counter ans ans = counter ans counter {
                if (counter > ans) ans = counter;
                counter = 0;
            } if (counter > ans) ans = counter; counter > ans counter ans ans = counter ans counter counter = 0 counter 0 prev = h prev h System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.valueOf(scanner.nextLine());
        String[] hAry = scanner.nextLine().split(" ");
        int ans = 0;
        int counter = 0;
        int prev = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        }
        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.valueOf(scanner.nextLine());
        String[] hAry = scanner.nextLine().split(" ");
        int ans = 0;
        int counter = 0;
        int prev = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.valueOf(scanner.nextLine());
        String[] hAry = scanner.nextLine().split(" ");
        int ans = 0;
        int counter = 0;
        int prev = 0;
        for (int i = 0; i < n; i++) {
            int h = Integer.valueOf(hAry[i]);
            if (h <= prev) {
                counter++;
                if (counter > ans) ans = counter;
            } else {
                if (counter > ans) ans = counter;
                counter = 0;
            }
            prev = h;
        }
        System.out.println(ans);
    }
}