import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] h = new int[n];
    for(int i=0; i<n; i++){
      h[i] = sc.nextInt();
    }
    
    int ans = 0;
    int j=1;
    while(j<n){
      int m=0;
      while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      }
      j++;
      if(ans<m){
        ans=m;
      }
    }
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] h = new int[n];
    for(int i=0; i<n; i++){
      h[i] = sc.nextInt();
    }
    
    int ans = 0;
    int j=1;
    while(j<n){
      int m=0;
      while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      }
      j++;
      if(ans<m){
        ans=m;
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] h = new int[n];
    for(int i=0; i<n; i++){
      h[i] = sc.nextInt();
    }
    
    int ans = 0;
    int j=1;
    while(j<n){
      int m=0;
      while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      }
      j++;
      if(ans<m){
        ans=m;
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] h = new int[n];
    for(int i=0; i<n; i++){
      h[i] = sc.nextInt();
    }
    
    int ans = 0;
    int j=1;
    while(j<n){
      int m=0;
      while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      }
      j++;
      if(ans<m){
        ans=m;
      }
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] h = new int[n]; h new int[n] n for(int i=0; i<n; i++){
      h[i] = sc.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      h[i] = sc.nextInt();
    } {
      h[i] = sc.nextInt();
    } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int ans = 0; ans 0 int j=1; j 1 while(j<n){
      int m=0;
      while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      }
      j++;
      if(ans<m){
        ans=m;
      }
    } j<n j n {
      int m=0;
      while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      }
      j++;
      if(ans<m){
        ans=m;
      }
    } int m=0; m 0 while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      } j<n && h[j-1]>=h[j] j<n j n h[j-1]>=h[j] h[j-1] h j-1 j 1 h[j] h j {
        m++;
        j++;
      } m++ m j++ j j++ j if(ans<m){
        ans=m;
      } ans<m ans m {
        ans=m;
      } ans=m ans m System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int[] h = new int[n];
    for(int i=0; i<n; i++){
      h[i] = sc.nextInt();
    }
    
    int ans = 0;
    int j=1;
    while(j<n){
      int m=0;
      while(j<n && h[j-1]>=h[j]){
        m++;
        j++;
      }
      j++;
      if(ans<m){
        ans=m;
      }
    }
    System.out.println(ans);
  }
}