import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int maxMovies = 0;
        int tmpMoves = 0;
        for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        }

        System.out.println(maxMovies);
    }
} 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.parseInt(scanner.next());

        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int maxMovies = 0;
        int tmpMoves = 0;
        for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        }

        System.out.println(maxMovies);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int maxMovies = 0;
        int tmpMoves = 0;
        for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        }

        System.out.println(maxMovies);
    } main {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int maxMovies = 0;
        int tmpMoves = 0;
        for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        }

        System.out.println(maxMovies);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int[] H = new int[N]; H new int[N] N for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            H[i] = Integer.parseInt(scanner.next());
        } {
            H[i] = Integer.parseInt(scanner.next());
        } H[i] = Integer.parseInt(scanner.next()) H[i] H i Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner scanner.close() scanner.close scanner int maxMovies = 0; maxMovies 0 int tmpMoves = 0; tmpMoves 0 for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        } {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        } int current = H[i]; current H[i] H i int next = H[i + 1]; next H[i + 1] H i + 1 i 1 if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            } current >= next current next {
                tmpMoves++;
            } tmpMoves++ tmpMoves {
                tmpMoves = 0;
            } tmpMoves = 0 tmpMoves 0 if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            } maxMovies < tmpMoves maxMovies tmpMoves {
                maxMovies = tmpMoves;
            } maxMovies = tmpMoves maxMovies tmpMoves System.out.println(maxMovies) System.out.println System.out System System.out maxMovies String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int maxMovies = 0;
        int tmpMoves = 0;
        for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        }

        System.out.println(maxMovies);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int maxMovies = 0;
        int tmpMoves = 0;
        for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        }

        System.out.println(maxMovies);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int[] H = new int[N];
        for (int i = 0; i < N; i++) {
            H[i] = Integer.parseInt(scanner.next());
        }
        scanner.close();

        int maxMovies = 0;
        int tmpMoves = 0;
        for (int i = 0; i < N - 1; i++) {
            int current = H[i];
            int next = H[i + 1];
            if (current >= next) {
                tmpMoves++;
            } else {
                tmpMoves = 0;
            }

            if (maxMovies < tmpMoves) {
                maxMovies = tmpMoves;
            }
        }

        System.out.println(maxMovies);
    }
}
