import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.math.BigInteger;
import java.util.Arrays;

public class Main{
        
    public static void main(String[] args)throws IOException{
	br = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter out = new PrintWriter(System.out);
	int n = nextInt();
	int v[] = new int[n];
        for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        }
	int ans = 0,r = 0;
	int c = 0;
	for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	}
	out.println(r>ans?r:ans);
	out.close();
    }
    
    static BufferedReader br;
    static StringTokenizer st = new StringTokenizer("");
    static String next()throws IOException{
	while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	}
	return st.nextToken();
    }
    static int nextInt()throws IOException{
	return Integer.parseInt(next());
    }
    static long nextLong()throws IOException{
	return Long.parseLong(next());
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io import java.util.StringTokenizer; StringTokenizer java.util import java.math.BigInteger; BigInteger java.math import java.util.Arrays; Arrays java.util public class Main{
        
    public static void main(String[] args)throws IOException{
	br = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter out = new PrintWriter(System.out);
	int n = nextInt();
	int v[] = new int[n];
        for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        }
	int ans = 0,r = 0;
	int c = 0;
	for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	}
	out.println(r>ans?r:ans);
	out.close();
    }
    
    static BufferedReader br;
    static StringTokenizer st = new StringTokenizer("");
    static String next()throws IOException{
	while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	}
	return st.nextToken();
    }
    static int nextInt()throws IOException{
	return Integer.parseInt(next());
    }
    static long nextLong()throws IOException{
	return Long.parseLong(next());
    }
} Main static BufferedReader br; br static StringTokenizer st = new StringTokenizer(""); st new StringTokenizer("") public static void main(String[] args)throws IOException{
	br = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter out = new PrintWriter(System.out);
	int n = nextInt();
	int v[] = new int[n];
        for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        }
	int ans = 0,r = 0;
	int c = 0;
	for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	}
	out.println(r>ans?r:ans);
	out.close();
    } main {
	br = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter out = new PrintWriter(System.out);
	int n = nextInt();
	int v[] = new int[n];
        for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        }
	int ans = 0,r = 0;
	int c = 0;
	for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	}
	out.println(r>ans?r:ans);
	out.close();
    } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = nextInt(); n nextInt() nextInt int v[] = new int[n]; v new int[n] n for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        } int  i = 0; int  i = 0; i 0 i<n i n i++ i++ i {
	    v[i] = nextInt();
        } {
	    v[i] = nextInt();
        } v[i] = nextInt() v[i] v i nextInt() nextInt int ans = 0 ans 0 r = 0; r 0 int c = 0; c 0 for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	} int i=1; int i=1; i 1 i<n i n i++ i++ i {
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	} {
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	} if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    } v[i]<=v[i-1] v[i] v i v[i-1] v i-1 i 1 {
		ans++;
            } ans++ ans {
		r = ans>r?ans:r;
		ans = 0;
	    } r = ans>r?ans:r r ans>r?ans:r ans>r ans r ans r ans = 0 ans 0 out.println(r>ans?r:ans) out.println out r>ans?r:ans r>ans r ans r ans out.close() out.close out String[] args args static String next()throws IOException{
	while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	}
	return st.nextToken();
    } next {
	while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	}
	return st.nextToken();
    } while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	} !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st {
	    st = new StringTokenizer(br.readLine());
	} st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st static int nextInt()throws IOException{
	return Integer.parseInt(next());
    } nextInt {
	return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next static long nextLong()throws IOException{
	return Long.parseLong(next());
    } nextLong {
	return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public class Main{
        
    public static void main(String[] args)throws IOException{
	br = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter out = new PrintWriter(System.out);
	int n = nextInt();
	int v[] = new int[n];
        for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        }
	int ans = 0,r = 0;
	int c = 0;
	for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	}
	out.println(r>ans?r:ans);
	out.close();
    }
    
    static BufferedReader br;
    static StringTokenizer st = new StringTokenizer("");
    static String next()throws IOException{
	while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	}
	return st.nextToken();
    }
    static int nextInt()throws IOException{
	return Integer.parseInt(next());
    }
    static long nextLong()throws IOException{
	return Long.parseLong(next());
    }
} public class Main{
        
    public static void main(String[] args)throws IOException{
	br = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter out = new PrintWriter(System.out);
	int n = nextInt();
	int v[] = new int[n];
        for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        }
	int ans = 0,r = 0;
	int c = 0;
	for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	}
	out.println(r>ans?r:ans);
	out.close();
    }
    
    static BufferedReader br;
    static StringTokenizer st = new StringTokenizer("");
    static String next()throws IOException{
	while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	}
	return st.nextToken();
    }
    static int nextInt()throws IOException{
	return Integer.parseInt(next());
    }
    static long nextLong()throws IOException{
	return Long.parseLong(next());
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.math.BigInteger;
import java.util.Arrays;

public class Main{
        
    public static void main(String[] args)throws IOException{
	br = new BufferedReader(new InputStreamReader(System.in));
	PrintWriter out = new PrintWriter(System.out);
	int n = nextInt();
	int v[] = new int[n];
        for(int  i = 0; i<n;i++){
	    v[i] = nextInt();
        }
	int ans = 0,r = 0;
	int c = 0;
	for(int i=1;i<n;i++){
	    if(v[i]<=v[i-1]){
		ans++;
            }else{
		r = ans>r?ans:r;
		ans = 0;
	    }
	    
	}
	out.println(r>ans?r:ans);
	out.close();
    }
    
    static BufferedReader br;
    static StringTokenizer st = new StringTokenizer("");
    static String next()throws IOException{
	while(!st.hasMoreTokens()){
	    st = new StringTokenizer(br.readLine());
	}
	return st.nextToken();
    }
    static int nextInt()throws IOException{
	return Integer.parseInt(next());
    }
    static long nextLong()throws IOException{
	return Long.parseLong(next());
    }
}