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 cnt = 0;
    ArrayList<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    }
    for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    }
    if (cnt > max) {
      max = cnt;
    }
    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 cnt = 0;
    ArrayList<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    }
    for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    }
    if (cnt > max) {
      max = cnt;
    }
    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 cnt = 0;
    ArrayList<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    }
    for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    }
    if (cnt > max) {
      max = cnt;
    }
    System.out.println(max);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int max = 0;
    int cnt = 0;
    ArrayList<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    }
    for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    }
    if (cnt > max) {
      max = cnt;
    }
    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 cnt = 0; cnt 0 ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      list.add(sc.nextInt());
    } {
      list.add(sc.nextInt());
    } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    } {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    } if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      } 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 {
        cnt++;
      } cnt++ cnt {
        max = Math.max(max, cnt);
        cnt = 0;
      } max = Math.max(max, cnt) max Math.max(max, cnt) Math.max Math max cnt cnt = 0 cnt 0 if (cnt > max) {
      max = cnt;
    } cnt > max cnt max {
      max = cnt;
    } max = cnt max cnt 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 cnt = 0;
    ArrayList<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    }
    for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    }
    if (cnt > max) {
      max = cnt;
    }
    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 cnt = 0;
    ArrayList<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    }
    for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    }
    if (cnt > max) {
      max = cnt;
    }
    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 cnt = 0;
    ArrayList<Integer> list = new ArrayList<Integer>();
    for (int i = 0; i < N; i++) {
      list.add(sc.nextInt());
    }
    for (int i = 0; i < N - 1; i++) {
      if (list.get(i) >= list.get(i + 1)) {
        cnt++;
      } else {
        max = Math.max(max, cnt);
        cnt = 0;
      }
    }
    if (cnt > max) {
      max = cnt;
    }
    System.out.println(max);
  }
}
