import java.util.*;
public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int num = parseInt(sc.nextLine());
      int[] number = new int[num];
      String[] tmp = sc.nextLine().split(" ");
      int count = 0;

      for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      }
      for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      }
      System.out.println(count);
      sc.close();
      }

      public static int parseInt(String num) {
        return Integer.parseInt(num);
      }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int num = parseInt(sc.nextLine());
      int[] number = new int[num];
      String[] tmp = sc.nextLine().split(" ");
      int count = 0;

      for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      }
      for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      }
      System.out.println(count);
      sc.close();
      }

      public static int parseInt(String num) {
        return Integer.parseInt(num);
      }
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int num = parseInt(sc.nextLine());
      int[] number = new int[num];
      String[] tmp = sc.nextLine().split(" ");
      int count = 0;

      for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      }
      for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      }
      System.out.println(count);
      sc.close();
      } main {
      Scanner sc = new Scanner(System.in);
      int num = parseInt(sc.nextLine());
      int[] number = new int[num];
      String[] tmp = sc.nextLine().split(" ");
      int count = 0;

      for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      }
      for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      }
      System.out.println(count);
      sc.close();
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = parseInt(sc.nextLine()); num parseInt(sc.nextLine()) parseInt sc.nextLine() sc.nextLine sc int[] number = new int[num]; number new int[num] num String[] tmp = sc.nextLine().split(" "); tmp sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int count = 0; count 0 for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
        number[i] = parseInt(tmp[i]);
      } {
        number[i] = parseInt(tmp[i]);
      } number[i] = parseInt(tmp[i]) number[i] number i parseInt(tmp[i]) parseInt tmp[i] tmp i for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      } {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      } int temp = 0; temp 0 for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        } int j = i + 1; int j = i + 1; j i + 1 i 1 j < number.length j number.length number number.length j++ j++ j {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        } {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        } if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          } number[j] <= number[i] number[j] number j number[i] number i {
            temp++;
            i++;
          } temp++ temp i++ i {
            break;
          } break; count = temp > count ? temp : count count temp > count ? temp : count temp > count temp count temp count System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public static int parseInt(String num) {
        return Integer.parseInt(num);
      } parseInt {
        return Integer.parseInt(num);
      } return Integer.parseInt(num); Integer.parseInt(num) Integer.parseInt Integer num String num num public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int num = parseInt(sc.nextLine());
      int[] number = new int[num];
      String[] tmp = sc.nextLine().split(" ");
      int count = 0;

      for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      }
      for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      }
      System.out.println(count);
      sc.close();
      }

      public static int parseInt(String num) {
        return Integer.parseInt(num);
      }
} public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int num = parseInt(sc.nextLine());
      int[] number = new int[num];
      String[] tmp = sc.nextLine().split(" ");
      int count = 0;

      for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      }
      for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      }
      System.out.println(count);
      sc.close();
      }

      public static int parseInt(String num) {
        return Integer.parseInt(num);
      }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int num = parseInt(sc.nextLine());
      int[] number = new int[num];
      String[] tmp = sc.nextLine().split(" ");
      int count = 0;

      for (int i = 0; i < num; i++) {
        number[i] = parseInt(tmp[i]);
      }
      for (int i = 0; i < num; i++) {
        int temp = 0;
        for (int j = i + 1; j < number.length; j++) {
          if (number[j] <= number[i]) {
            temp++;
            i++;
          } else {
            break;
          }
        }
        count = temp > count ? temp : count;
      }
      System.out.println(count);
      sc.close();
      }

      public static int parseInt(String num) {
        return Integer.parseInt(num);
      }
}