import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int high = 0;
		int count = 0;
		int tmp = 0;
		int max = 0;

		for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		}
		if(tmp>count) {
			count = tmp;
		}
		System.out.println(count);

	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int high = 0;
		int count = 0;
		int tmp = 0;
		int max = 0;

		for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		}
		if(tmp>count) {
			count = tmp;
		}
		System.out.println(count);

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int high = 0;
		int count = 0;
		int tmp = 0;
		int max = 0;

		for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		}
		if(tmp>count) {
			count = tmp;
		}
		System.out.println(count);

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int high = 0;
		int count = 0;
		int tmp = 0;
		int max = 0;

		for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		}
		if(tmp>count) {
			count = tmp;
		}
		System.out.println(count);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int high = 0; high 0 int count = 0; count 0 int tmp = 0; tmp 0 int max = 0; max 0 for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		} {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		} high = sc.nextInt() high sc.nextInt() sc.nextInt sc if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			} high <= max high max {
				tmp = tmp + 1;
				max = high;
			} tmp = tmp + 1 tmp tmp + 1 tmp 1 max = high max high {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			} max = high max high if(tmp>count) {
					count = tmp;
				} tmp>count tmp count {
					count = tmp;
				} count = tmp count tmp tmp = 0 tmp 0 if(tmp>count) {
			count = tmp;
		} tmp>count tmp count {
			count = tmp;
		} count = tmp count tmp System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int high = 0;
		int count = 0;
		int tmp = 0;
		int max = 0;

		for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		}
		if(tmp>count) {
			count = tmp;
		}
		System.out.println(count);

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int high = 0;
		int count = 0;
		int tmp = 0;
		int max = 0;

		for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		}
		if(tmp>count) {
			count = tmp;
		}
		System.out.println(count);

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int high = 0;
		int count = 0;
		int tmp = 0;
		int max = 0;

		for(int i=1;i<=N;i++) {
			high = sc.nextInt();
			if(high <= max) {
				tmp = tmp + 1;
				max = high;
			}else {
				max = high;
				if(tmp>count) {
					count = tmp;
				}
				tmp = 0;
			}
		}
		if(tmp>count) {
			count = tmp;
		}
		System.out.println(count);

	}
}
