
import java.util.Scanner;

/**
 * @author author
 *
 */
public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int prev = Integer.parseInt(sc.next());
    int max = 0;
    int count = 0;
    for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    }
    System.out.println(max);
  }
} import java.util.Scanner; Scanner java.util public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int prev = Integer.parseInt(sc.next());
    int max = 0;
    int count = 0;
    for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    }
    System.out.println(max);
  }
} Main /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int prev = Integer.parseInt(sc.next());
    int max = 0;
    int count = 0;
    for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    }
    System.out.println(max);
  } main {

    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int prev = Integer.parseInt(sc.next());
    int max = 0;
    int count = 0;
    for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    }
    System.out.println(max);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int prev = Integer.parseInt(sc.next()); prev Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int max = 0; max 0 int count = 0; count 0 for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    } {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    } int after = Integer.parseInt(sc.next()); after Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (prev >= after) {
        count++;
      } else {
        count = 0;
      } prev >= after prev after {
        count++;
      } count++ count {
        count = 0;
      } count = 0 count 0 max = Math.max(max, count) max Math.max(max, count) Math.max Math max count prev = after prev after System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int prev = Integer.parseInt(sc.next());
    int max = 0;
    int count = 0;
    for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    }
    System.out.println(max);
  }
} public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int prev = Integer.parseInt(sc.next());
    int max = 0;
    int count = 0;
    for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    }
    System.out.println(max);
  }
} Main

import java.util.Scanner;

/**
 * @author author
 *
 */
public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int prev = Integer.parseInt(sc.next());
    int max = 0;
    int count = 0;
    for (int i = 1; i < n; i++) {
      int after = Integer.parseInt(sc.next());

      if (prev >= after) {
        count++;
      } else {
        count = 0;
      }
      max = Math.max(max, count);
      prev = after;
    }
    System.out.println(max);
  }
}
