
import java.util.Scanner;

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        long prev = 0;
        int moves = 0;
        int maxMoves = 0;
        
        for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        }
        
        System.out.println(Math.max(moves, maxMoves));
    }
    
} import java.util.Scanner; Scanner java.util public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        long prev = 0;
        int moves = 0;
        int maxMoves = 0;
        
        for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        }
        
        System.out.println(Math.max(moves, maxMoves));
    }
    
} Main /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        long prev = 0;
        int moves = 0;
        int maxMoves = 0;
        
        for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        }
        
        System.out.println(Math.max(moves, maxMoves));
    } main {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        long prev = 0;
        int moves = 0;
        int maxMoves = 0;
        
        for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        }
        
        System.out.println(Math.max(moves, maxMoves));
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s long prev = 0; prev 0 int moves = 0; moves 0 int maxMoves = 0; maxMoves 0 for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        } int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        } {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        } long in = s.nextLong(); in s.nextLong() s.nextLong s if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            } in <= prev in prev moves ++ moves {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            } if (moves > maxMoves)
                    maxMoves = moves; moves > maxMoves moves maxMoves maxMoves = moves maxMoves moves moves = 0 moves 0 prev = in prev in System.out.println(Math.max(moves, maxMoves)) System.out.println System.out System System.out Math.max(moves, maxMoves) Math.max Math moves maxMoves String[] args args public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        long prev = 0;
        int moves = 0;
        int maxMoves = 0;
        
        for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        }
        
        System.out.println(Math.max(moves, maxMoves));
    }
    
} public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        long prev = 0;
        int moves = 0;
        int maxMoves = 0;
        
        for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        }
        
        System.out.println(Math.max(moves, maxMoves));
    }
    
} Main

import java.util.Scanner;

public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        
        long prev = 0;
        int moves = 0;
        int maxMoves = 0;
        
        for (int i = 0; i < n; i ++) {
            long in = s.nextLong();
            if (in <= prev)
                moves ++;
            else {
                if (moves > maxMoves)
                    maxMoves = moves;
                moves = 0;
            }
            prev = in;
        }
        
        System.out.println(Math.max(moves, maxMoves));
    }
    
}
