import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int res = 0;
    int count = 0;
    int max = scan.nextInt();
    for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    }
    scan.close();
    
    System.out.println(res);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int res = 0;
    int count = 0;
    int max = scan.nextInt();
    for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    }
    scan.close();
    
    System.out.println(res);
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int res = 0;
    int count = 0;
    int max = scan.nextInt();
    for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    }
    scan.close();
    
    System.out.println(res);
  } main {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int res = 0;
    int count = 0;
    int max = scan.nextInt();
    for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    }
    scan.close();
    
    System.out.println(res);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int res = 0; res 0 int count = 0; count 0 int max = scan.nextInt(); max scan.nextInt() scan.nextInt scan for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    } {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    } int h = scan.nextInt(); h scan.nextInt() scan.nextInt scan if (max >= h) {
        count++;
      } else {
        count = 0;
      } max >= h max h {
        count++;
      } count++ count {
        count = 0;
      } count = 0 count 0 res = Math.max(res, count) res Math.max(res, count) Math.max Math res count max = h max h scan.close() scan.close scan System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int res = 0;
    int count = 0;
    int max = scan.nextInt();
    for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    }
    scan.close();
    
    System.out.println(res);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int res = 0;
    int count = 0;
    int max = scan.nextInt();
    for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    }
    scan.close();
    
    System.out.println(res);
  }
} Main
import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int res = 0;
    int count = 0;
    int max = scan.nextInt();
    for (int i = 1; i < N; i++) {
      int h = scan.nextInt();
      if (max >= h) {
        count++;
      } else {
        count = 0;
      }
      res = Math.max(res, count);
      max = h;
    }
    scan.close();
    
    System.out.println(res);
  }
}