import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    }
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    } {
      scanner.close();
    } scanner.close() scanner.close scanner {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner if (n == 1) {
        System.out.println(0);
        return;
      } n == 1 n 1 {
        System.out.println(0);
        return;
      } System.out.println(0) System.out.println System.out System System.out 0 return; int[] h = new int[n]; h new int[n] n for (int i = 0; i < n; i++) h[i] = scanner.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i h[i] = scanner.nextInt(); h[i] = scanner.nextInt() h[i] h i scanner.nextInt() scanner.nextInt scanner int cnt = 0; cnt 0 int ans = 0; ans 0 for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      } 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]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      } {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      } if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        } h[i] >= h[i+1] h[i] h i h[i+1] h i+1 i 1 {
          cnt++;
          if (ans < cnt) ans = cnt;
        } cnt++ cnt if (ans < cnt) ans = cnt; ans < cnt ans cnt ans = cnt ans cnt {
          cnt = 0;
        } cnt = 0 cnt 0 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    try {
      int n = scanner.nextInt();
      if (n == 1) {
        System.out.println(0);
        return;
      }

      int[] h = new int[n];
      for (int i = 0; i < n; i++) h[i] = scanner.nextInt();

      int cnt = 0;
      int ans = 0;
      for (int i = 0; i < n - 1; i++) {
        if (h[i] >= h[i+1]) {
          cnt++;
          if (ans < cnt) ans = cnt;
        } else {
          cnt = 0;
        }
      }
      System.out.println(ans);
    } finally {
      scanner.close();
    }
  }
}