import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int pre = 0;
    int max = 0;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    }

    System.out.println(max);

  }
} 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 pre = 0;
    int max = 0;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    }

    System.out.println(max);

  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int pre = 0;
    int max = 0;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    }

    System.out.println(max);

  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int pre = 0;
    int max = 0;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    }

    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 pre = 0; pre 0 int max = 0; max 0 int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    } {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      } pre >= h pre h {
        cnt++;
      } cnt++ cnt {
        cnt = 0;
      } cnt = 0 cnt 0 max = Math.max(max, cnt) max Math.max(max, cnt) Math.max Math max cnt pre = h pre h 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 pre = 0;
    int max = 0;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    }

    System.out.println(max);

  }
} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int pre = 0;
    int max = 0;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    }

    System.out.println(max);

  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int pre = 0;
    int max = 0;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
      int h = sc.nextInt();
      if (pre >= h) {
        cnt++;
      } else {
        cnt = 0;
      }
      max = Math.max(max, cnt);
      pre = h;
    }

    System.out.println(max);

  }
}