import java.util.*;
public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    }
    int ans = 0;
    int[] array = new int [N];
    for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    }
    
    System.out.println(ans);

  }
} import java.util.*; util.* java public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    }
    int ans = 0;
    int[] array = new int [N];
    for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    }
    
    System.out.println(ans);

  }
} Main public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    }
    int ans = 0;
    int[] array = new int [N];
    for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    }
    
    System.out.println(ans);

  } main {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    }
    int ans = 0;
    int[] array = new int [N];
    for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    }
    
    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 ArrayList<Long> list = new ArrayList<Long>(); list new ArrayList<Long>() for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      long h = sc.nextLong();
      list.add(h);
    } {
      long h = sc.nextLong();
      list.add(h);
    } long h = sc.nextLong(); h sc.nextLong() sc.nextLong sc list.add(h) list.add list h int ans = 0; ans 0 int[] array = new int [N]; array new int [N] N for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    } int i=N-2; int i=N-2; i N-2 N 2 0 <= i 0 i i-- i-- i {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    } {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    } if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } list.get(i) >= list.get(i+1) list.get(i) list.get list i list.get(i+1) list.get list i+1 i 1 {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } array[i] =  array[i+1] + 1 array[i] array i array[i+1] + 1 array[i+1] array i+1 i 1 1 ans = Math.max(ans,array[i]) ans Math.max(ans,array[i]) Math.max Math ans array[i] array i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    }
    int ans = 0;
    int[] array = new int [N];
    for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    }
    
    System.out.println(ans);

  }
} public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    }
    int ans = 0;
    int[] array = new int [N];
    for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    }
    
    System.out.println(ans);

  }
} Main
import java.util.*;
public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i=0; i<N; i++) {
      long h = sc.nextLong();
      list.add(h);
    }
    int ans = 0;
    int[] array = new int [N];
    for (int i=N-2; 0 <= i; i--) {
      if (list.get(i) >= list.get(i+1)) {
        array[i] =  array[i+1] + 1; 
        ans = Math.max(ans,array[i]);
      } 
    }
    
    System.out.println(ans);

  }
}