import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int[] arr = new int[n];
    int ans = 0;
    int max = 0;
    for(int i = 0; i < n; i++){
      arr[i] = scan.nextInt();
    }
    for(int i = 0; i < n-1; i++){
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    }
    System.out.println(max);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int[] arr = new int[n];
    int ans = 0;
    int max = 0;
    for(int i = 0; i < n; i++){
      arr[i] = scan.nextInt();
    }
    for(int i = 0; i < n-1; i++){
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    }
    System.out.println(max);
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int[] arr = new int[n];
    int ans = 0;
    int max = 0;
    for(int i = 0; i < n; i++){
      arr[i] = scan.nextInt();
    }
    for(int i = 0; i < n-1; i++){
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    }
    System.out.println(max);
  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int[] arr = new int[n];
    int ans = 0;
    int max = 0;
    for(int i = 0; i < n; i++){
      arr[i] = scan.nextInt();
    }
    for(int i = 0; i < n-1; i++){
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    }
    System.out.println(max);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] arr = new int[n]; arr new int[n] n int ans = 0; ans 0 int max = 0; max 0 for(int i = 0; i < n; i++){
      arr[i] = scan.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      arr[i] = scan.nextInt();
    } {
      arr[i] = scan.nextInt();
    } arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan for(int i = 0; i < n-1; i++){
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    } int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    } {
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    } if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      } arr[i] >= arr[i+1] arr[i] arr i arr[i+1] arr i+1 i 1 {
        ans++;
        if(max < ans){max = ans;}
      } ans++ ans if(max < ans){max = ans;} max < ans max ans {max = ans;} max = ans max ans {
        ans = 0;
      } ans = 0 ans 0 System.out.println(max) System.out.println System.out System System.out max String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int[] arr = new int[n];
    int ans = 0;
    int max = 0;
    for(int i = 0; i < n; i++){
      arr[i] = scan.nextInt();
    }
    for(int i = 0; i < n-1; i++){
      if(arr[i] >= arr[i+1]){
        ans++;
        if(max < ans){max = ans;}
      }else{
        ans = 0;
      }
    }
    System.out.println(max);
  }
}