import java.util.*;
import java.math.*;
import java.lang.*;
import java.io.*;
 
public class Main{
  public static void main(String args[]) throws IOException{
    Scanner s=new Scanner(System.in);
   
    int n=s.nextInt();
   
   int a[]=new int[n];
    for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    }
    int c=0;
    int max=-1;
    for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      }
    System.out.println(Math.max(max,0));
    }
    
} import java.util.*; util.* java import java.math.*; math.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main{
  public static void main(String args[]) throws IOException{
    Scanner s=new Scanner(System.in);
   
    int n=s.nextInt();
   
   int a[]=new int[n];
    for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    }
    int c=0;
    int max=-1;
    for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      }
    System.out.println(Math.max(max,0));
    }
    
} Main public static void main(String args[]) throws IOException{
    Scanner s=new Scanner(System.in);
   
    int n=s.nextInt();
   
   int a[]=new int[n];
    for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    }
    int c=0;
    int max=-1;
    for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      }
    System.out.println(Math.max(max,0));
    } main {
    Scanner s=new Scanner(System.in);
   
    int n=s.nextInt();
   
   int a[]=new int[n];
    for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    }
    int c=0;
    int max=-1;
    for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      }
    System.out.println(Math.max(max,0));
    } Scanner s=new Scanner(System.in); s new Scanner(System.in) int n=s.nextInt(); n s.nextInt() s.nextInt s int a[]=new int[n]; a new int[n] n for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      a[i]=s.nextInt();
    } {
      a[i]=s.nextInt();
    } a[i]=s.nextInt() a[i] a i s.nextInt() s.nextInt s int c=0; c 0 int max=-1; max -1 1 for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      } {
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      } if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0; a[i]>=a[i+1] a[i] a i a[i+1] a i+1 i 1 {  c++;
      if(c>max)
        max=c;
      } c++ c if(c>max)
        max=c; c>max c max max=c max c c=0 c 0 System.out.println(Math.max(max,0)) System.out.println System.out System System.out Math.max(max,0) Math.max Math max 0 String args[] args public class Main{
  public static void main(String args[]) throws IOException{
    Scanner s=new Scanner(System.in);
   
    int n=s.nextInt();
   
   int a[]=new int[n];
    for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    }
    int c=0;
    int max=-1;
    for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      }
    System.out.println(Math.max(max,0));
    }
    
} public class Main{
  public static void main(String args[]) throws IOException{
    Scanner s=new Scanner(System.in);
   
    int n=s.nextInt();
   
   int a[]=new int[n];
    for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    }
    int c=0;
    int max=-1;
    for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      }
    System.out.println(Math.max(max,0));
    }
    
} Main
import java.util.*;
import java.math.*;
import java.lang.*;
import java.io.*;
 
public class Main{
  public static void main(String args[]) throws IOException{
    Scanner s=new Scanner(System.in);
   
    int n=s.nextInt();
   
   int a[]=new int[n];
    for(int i=0;i<n;i++){
      a[i]=s.nextInt();
    }
    int c=0;
    int max=-1;
    for(int i=0;i<n-1;i++){
      if(a[i]>=a[i+1])
      {  c++;
      if(c>max)
        max=c;
      }
      else
        c=0;
      
      }
    System.out.println(Math.max(max,0));
    }
    
}