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