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[] H = new int[N];
		int[] countH = new int[N];
		
		
		for(int i = 0 ; i < N ; i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		
		for(int i = 0 ; i < N-1 ; i++) {
			if (H[i] >= H[i+1]) {
				countH[i] = 1;
			}
		}
		/*
		for(int i = 0 ; i < N ; i++) {
			System.out.print(countH[i] + " ");
		}
		System.out.println();
		*/
		int ans = 0;
		int count = 0;
		
		for(int i = 0 ; i < N ; i++) {
			if(countH[i] == 1) {
				count++;
			}else{
				if(count > ans) {
					ans = count;
				}
				count = 0;
			}
			// System.out.print(ans + " ");
		}
		System.out.println(ans);
	}

} 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[] H = new int[N];
		int[] countH = new int[N];
		
		
		for(int i = 0 ; i < N ; i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		
		for(int i = 0 ; i < N-1 ; i++) {
			if (H[i] >= H[i+1]) {
				countH[i] = 1;
			}
		}
		/*
		for(int i = 0 ; i < N ; i++) {
			System.out.print(countH[i] + " ");
		}
		System.out.println();
		*/
		int ans = 0;
		int count = 0;
		
		for(int i = 0 ; i < N ; i++) {
			if(countH[i] == 1) {
				count++;
			}else{
				if(count > ans) {
					ans = count;
				}
				count = 0;
			}
			// System.out.print(ans + " ");
		}
		System.out.println(ans);
	}

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

} public 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];
		int[] countH = new int[N];
		
		
		for(int i = 0 ; i < N ; i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		
		for(int i = 0 ; i < N-1 ; i++) {
			if (H[i] >= H[i+1]) {
				countH[i] = 1;
			}
		}
		/*
		for(int i = 0 ; i < N ; i++) {
			System.out.print(countH[i] + " ");
		}
		System.out.println();
		*/
		int ans = 0;
		int count = 0;
		
		for(int i = 0 ; i < N ; i++) {
			if(countH[i] == 1) {
				count++;
			}else{
				if(count > ans) {
					ans = count;
				}
				count = 0;
			}
			// System.out.print(ans + " ");
		}
		System.out.println(ans);
	}

} 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[] H = new int[N];
		int[] countH = new int[N];
		
		
		for(int i = 0 ; i < N ; i++) {
			H[i] = Integer.parseInt(sc.next());
		}
		
		for(int i = 0 ; i < N-1 ; i++) {
			if (H[i] >= H[i+1]) {
				countH[i] = 1;
			}
		}
		/*
		for(int i = 0 ; i < N ; i++) {
			System.out.print(countH[i] + " ");
		}
		System.out.println();
		*/
		int ans = 0;
		int count = 0;
		
		for(int i = 0 ; i < N ; i++) {
			if(countH[i] == 1) {
				count++;
			}else{
				if(count > ans) {
					ans = count;
				}
				count = 0;
			}
			// System.out.print(ans + " ");
		}
		System.out.println(ans);
	}

}
