
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
  public static void main(String args[]) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int H[] = new int[N];
    int count = 0;
    List<Integer> list = new ArrayList<Integer>();

    for (int i = 0; i < N; i++) {
      H[i] = sc.nextInt();
    }

    for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    }

    int max = 0;
    for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    }

    System.out.println(max);

    sc.close();
  }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String args[]) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int H[] = new int[N];
    int count = 0;
    List<Integer> list = new ArrayList<Integer>();

    for (int i = 0; i < N; i++) {
      H[i] = sc.nextInt();
    }

    for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    }

    int max = 0;
    for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    }

    System.out.println(max);

    sc.close();
  }
} Main public static void main(String args[]) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int H[] = new int[N];
    int count = 0;
    List<Integer> list = new ArrayList<Integer>();

    for (int i = 0; i < N; i++) {
      H[i] = sc.nextInt();
    }

    for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    }

    int max = 0;
    for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    }

    System.out.println(max);

    sc.close();
  } main {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int H[] = new int[N];
    int count = 0;
    List<Integer> list = new ArrayList<Integer>();

    for (int i = 0; i < N; i++) {
      H[i] = sc.nextInt();
    }

    for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    }

    int max = 0;
    for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    }

    System.out.println(max);

    sc.close();
  } 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 int count = 0; count 0 List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() 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 for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    } {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    } if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      } H[i] >= H[i + 1] H[i] H i H[i + 1] H i + 1 i 1 {
        count++;
      } count++ count {
        list.add(count);
        count = 0;
      } list.add(count) list.add list count count = 0 count 0 if (i == N - 2) {
        list.add(count);
      } i == N - 2 i N - 2 N 2 {
        list.add(count);
      } list.add(count) list.add list count int max = 0; max 0 for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    } int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    } {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    } if (max <= list.get(i)) {
        max = list.get(i);
      } max <= list.get(i) max list.get(i) list.get list i {
        max = list.get(i);
      } max = list.get(i) max list.get(i) list.get list i System.out.println(max) System.out.println System.out System System.out max sc.close() sc.close sc String args[] args public class Main {
  public static void main(String args[]) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int H[] = new int[N];
    int count = 0;
    List<Integer> list = new ArrayList<Integer>();

    for (int i = 0; i < N; i++) {
      H[i] = sc.nextInt();
    }

    for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    }

    int max = 0;
    for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    }

    System.out.println(max);

    sc.close();
  }
} public class Main {
  public static void main(String args[]) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int H[] = new int[N];
    int count = 0;
    List<Integer> list = new ArrayList<Integer>();

    for (int i = 0; i < N; i++) {
      H[i] = sc.nextInt();
    }

    for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    }

    int max = 0;
    for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    }

    System.out.println(max);

    sc.close();
  }
} Main

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
  public static void main(String args[]) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int H[] = new int[N];
    int count = 0;
    List<Integer> list = new ArrayList<Integer>();

    for (int i = 0; i < N; i++) {
      H[i] = sc.nextInt();
    }

    for (int i = 0; i < N - 1; i++) {
      if (H[i] >= H[i + 1]) {
        count++;
      } else {
        list.add(count);
        count = 0;
      }

      if (i == N - 2) {
        list.add(count);
      }

    }

    int max = 0;
    for (int i = 0; i < list.size(); i++) {
      if (max <= list.get(i)) {
        max = list.get(i);
      }
    }

    System.out.println(max);

    sc.close();
  }
}
