import java.util.*;

class Main
{
  public static void main(String [] args)
  {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    int arr[ ] = new int[N];
    for(int i=0;i<N;i++)
    {
      arr[i]=sc.nextInt();
    }
    
    int [ ] c =new int[N];
    for(int i=0;i<c.length-1;i++)
    {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    }
    int sum=0;
 	int max =Integer.MIN_VALUE;
    for(int i=0;i<c.length;i++)
    {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    }
    
    System.out.println(max);
  }
  
} import java.util.*; util.* java class Main
{
  public static void main(String [] args)
  {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    int arr[ ] = new int[N];
    for(int i=0;i<N;i++)
    {
      arr[i]=sc.nextInt();
    }
    
    int [ ] c =new int[N];
    for(int i=0;i<c.length-1;i++)
    {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    }
    int sum=0;
 	int max =Integer.MIN_VALUE;
    for(int i=0;i<c.length;i++)
    {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    }
    
    System.out.println(max);
  }
  
} Main public static void main(String [] args)
  {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    int arr[ ] = new int[N];
    for(int i=0;i<N;i++)
    {
      arr[i]=sc.nextInt();
    }
    
    int [ ] c =new int[N];
    for(int i=0;i<c.length-1;i++)
    {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    }
    int sum=0;
 	int max =Integer.MIN_VALUE;
    for(int i=0;i<c.length;i++)
    {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    }
    
    System.out.println(max);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    int arr[ ] = new int[N];
    for(int i=0;i<N;i++)
    {
      arr[i]=sc.nextInt();
    }
    
    int [ ] c =new int[N];
    for(int i=0;i<c.length-1;i++)
    {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    }
    int sum=0;
 	int max =Integer.MIN_VALUE;
    for(int i=0;i<c.length;i++)
    {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    }
    
    System.out.println(max);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int arr[ ] = new int[N]; arr new int[N] N for(int i=0;i<N;i++)
    {
      arr[i]=sc.nextInt();
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      arr[i]=sc.nextInt();
    } {
      arr[i]=sc.nextInt();
    } arr[i]=sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc int [ ] c =new int[N]; c new int[N] N for(int i=0;i<c.length-1;i++)
    {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    } int i=0; int i=0; i 0 i<c.length-1 i c.length-1 c.length c c.length 1 i++ i++ i {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    } {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    } if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0; arr[i+1]<=arr[i] arr[i+1] arr i+1 i 1 arr[i] arr i c[i]=1 c[i] c i 1 c[i]=0 c[i] c i 0 int sum=0; sum 0 int max =Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE for(int i=0;i<c.length;i++)
    {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    } int i=0; int i=0; i 0 i<c.length i c.length c c.length i++ i++ i {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    } {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    } if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      } c[i]==0 || i == c.length-1 c[i]==0 c[i] c i 0 i == c.length-1 i c.length-1 c.length c c.length 1 {
          if(sum>max) { max=sum; } 
          sum=0;
        } if(sum>max) { max=sum; } sum>max sum max { max=sum; } max=sum max sum sum=0 sum 0 {
        sum++;
      } sum++ sum System.out.println(max) System.out.println System.out System System.out max String [] args args
import java.util.*;

class Main
{
  public static void main(String [] args)
  {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    int arr[ ] = new int[N];
    for(int i=0;i<N;i++)
    {
      arr[i]=sc.nextInt();
    }
    
    int [ ] c =new int[N];
    for(int i=0;i<c.length-1;i++)
    {
      if(arr[i+1]<=arr[i])
        c[i]=1;
      else c[i]=0;
    }
    int sum=0;
 	int max =Integer.MIN_VALUE;
    for(int i=0;i<c.length;i++)
    {
     	if(c[i]==0 || i == c.length-1)
        {
          if(sum>max) { max=sum; } 
          sum=0;
        }
      else
      {
        sum++;
      }
    }
    
    System.out.println(max);
  }
  
}