import java.util.*;

public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  int N = Integer.parseInt(sc.next());
	  
	  int H1 = Integer.parseInt(sc.next());
	  int count = 0;
	  int max = 0;
	  for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  }
	  System.out.println(max);
	  sc.close();
	  
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  int N = Integer.parseInt(sc.next());
	  
	  int H1 = Integer.parseInt(sc.next());
	  int count = 0;
	  int max = 0;
	  for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  }
	  System.out.println(max);
	  sc.close();
	  
  }
} Main public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  int N = Integer.parseInt(sc.next());
	  
	  int H1 = Integer.parseInt(sc.next());
	  int count = 0;
	  int max = 0;
	  for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  }
	  System.out.println(max);
	  sc.close();
	  
  } main {
	  Scanner sc = new Scanner(System.in);
	  int N = Integer.parseInt(sc.next());
	  
	  int H1 = Integer.parseInt(sc.next());
	  int count = 0;
	  int max = 0;
	  for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  }
	  System.out.println(max);
	  sc.close();
	  
  } 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 H1 = Integer.parseInt(sc.next()); H1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int count = 0; count 0 int max = 0; max 0 for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  } {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  } int H2 = Integer.parseInt(sc.next()); H2 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  } H1 >= H2 H1 H2 {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  } count++ count if(count > max) {
				  max = count;
			  } count > max count max {
				  max = count;
			  } max = count max count {
			  count = 0;
		  } count = 0 count 0 H1 = H2 H1 H2 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 = Integer.parseInt(sc.next());
	  
	  int H1 = Integer.parseInt(sc.next());
	  int count = 0;
	  int max = 0;
	  for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  }
	  System.out.println(max);
	  sc.close();
	  
  }
} public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  int N = Integer.parseInt(sc.next());
	  
	  int H1 = Integer.parseInt(sc.next());
	  int count = 0;
	  int max = 0;
	  for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  }
	  System.out.println(max);
	  sc.close();
	  
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  int N = Integer.parseInt(sc.next());
	  
	  int H1 = Integer.parseInt(sc.next());
	  int count = 0;
	  int max = 0;
	  for(int i = 0; i < N - 1; i++) {
		  int H2 = Integer.parseInt(sc.next());
		  if(H1 >= H2) {
			  count++;
			  if(count > max) {
				  max = count;
			  }
		  }
		  else {
			  count = 0;
		  }
		  H1 = H2;
	  }
	  System.out.println(max);
	  sc.close();
	  
  }
}
