import java.util.*;
public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int max=0;
      int[] map = new int[n];
      for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力
      int i;
      for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      }
	  System.out.println(max);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int max=0;
      int[] map = new int[n];
      for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力
      int i;
      for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      }
	  System.out.println(max);
    }
} Main public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int max=0;
      int[] map = new int[n];
      for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力
      int i;
      for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      }
	  System.out.println(max);
    } main {
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int max=0;
      int[] map = new int[n];
      for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力
      int i;
      for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      }
	  System.out.println(max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int max=0; max 0 int[] map = new int[n]; map new int[n] n for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力 int i = 0; int i = 0; i 0 i<n i n i++ i++ i map[i]=sc.nextInt(); //入力 map[i]=sc.nextInt() map[i] map i sc.nextInt() sc.nextInt sc int i; i for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      } int j = 0; int j = 0; j 0 j<n j n j++ j++ j {
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      } {
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      } for(i=j;i<n-1;i++)if(map[i]<map[i+1])break; i=j; i=j i j i<n-1 i n-1 n 1 i++ i++ i if(map[i]<map[i+1])break; if(map[i]<map[i+1])break; map[i]<map[i+1] map[i] map i map[i+1] map i+1 i 1 break; if(max<i-j)max=i-j; max<i-j max i-j i j max=i-j max i-j i j j=i j i System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int max=0;
      int[] map = new int[n];
      for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力
      int i;
      for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      }
	  System.out.println(max);
    }
} public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int max=0;
      int[] map = new int[n];
      for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力
      int i;
      for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      }
	  System.out.println(max);
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  int n = sc.nextInt();
	  int max=0;
      int[] map = new int[n];
      for(int i = 0;i<n;i++)map[i]=sc.nextInt(); //入力
      int i;
      for(int j = 0;j<n;j++){
	      for(i=j;i<n-1;i++)if(map[i]<map[i+1])break;
          if(max<i-j)max=i-j;
	      j=i;
	      
      }
	  System.out.println(max);
    }
}