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

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

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