import java.util.*;
import java.io.*;

public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int length = sc.nextInt();
    int[] bruh = new int[length];
    for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt();
    int max = 0; 
    int mov = 0;
    for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    }
	System.out.println(max);
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int length = sc.nextInt();
    int[] bruh = new int[length];
    for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt();
    int max = 0; 
    int mov = 0;
    for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    }
	System.out.println(max);
  }
} Main public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int length = sc.nextInt();
    int[] bruh = new int[length];
    for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt();
    int max = 0; 
    int mov = 0;
    for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    }
	System.out.println(max);
  } main {
    Scanner sc = new Scanner(System.in);
    int length = sc.nextInt();
    int[] bruh = new int[length];
    for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt();
    int max = 0; 
    int mov = 0;
    for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    }
	System.out.println(max);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int length = sc.nextInt(); length sc.nextInt() sc.nextInt sc int[] bruh = new int[length]; bruh new int[length] length for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < bruh.length i bruh.length bruh bruh.length i++ i++ i bruh[i] = sc.nextInt(); bruh[i] = sc.nextInt() bruh[i] bruh i sc.nextInt() sc.nextInt sc int max = 0; max 0 int mov = 0; mov 0 for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    } int i = bruh.length-2; int i = bruh.length-2; i bruh.length-2 bruh.length bruh bruh.length 2 i >= 0 i 0 i-- i-- i {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    } {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    } if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++; bruh[i+1] > bruh[i] bruh[i+1] bruh i+1 i 1 bruh[i] bruh i mov = 0 mov 0 mov++ mov if(mov > max)
        max = mov; mov > max mov max max = mov max mov 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 length = sc.nextInt();
    int[] bruh = new int[length];
    for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt();
    int max = 0; 
    int mov = 0;
    for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    }
	System.out.println(max);
  }
} public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int length = sc.nextInt();
    int[] bruh = new int[length];
    for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt();
    int max = 0; 
    int mov = 0;
    for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    }
	System.out.println(max);
  }
} Main
import java.util.*;
import java.io.*;

public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int length = sc.nextInt();
    int[] bruh = new int[length];
    for(int i = 0; i < bruh.length; i++)
    	bruh[i] = sc.nextInt();
    int max = 0; 
    int mov = 0;
    for(int i = bruh.length-2; i >= 0; i--)
    {
      if(bruh[i+1] > bruh[i])
        mov = 0;
      else
        mov++;
      if(mov > max)
        max = mov;
    }
	System.out.println(max);
  }
}