import java.util.Scanner;

	public class Main {

		public static void main(String[] args) {
			// AtCoder_C
			Scanner sc = new Scanner(System.in);
			int ans = 0;

			int N = sc.nextInt();
			long now = sc.nextLong();
			long next = 0;

			int moveNow = 0;
			int moveMax = 0;

			for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			}

			if(moveMax < moveNow) {
				moveMax = moveNow;
			}

			System.out.println(moveMax);

    	    // Scannerクラスのインスタンスをクローズ
    		sc.close();
    	}
    } import java.util.Scanner; Scanner java.util public class Main {

		public static void main(String[] args) {
			// AtCoder_C
			Scanner sc = new Scanner(System.in);
			int ans = 0;

			int N = sc.nextInt();
			long now = sc.nextLong();
			long next = 0;

			int moveNow = 0;
			int moveMax = 0;

			for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			}

			if(moveMax < moveNow) {
				moveMax = moveNow;
			}

			System.out.println(moveMax);

    	    // Scannerクラスのインスタンスをクローズ
    		sc.close();
    	}
    } Main public static void main(String[] args) {
			// AtCoder_C
			Scanner sc = new Scanner(System.in);
			int ans = 0;

			int N = sc.nextInt();
			long now = sc.nextLong();
			long next = 0;

			int moveNow = 0;
			int moveMax = 0;

			for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			}

			if(moveMax < moveNow) {
				moveMax = moveNow;
			}

			System.out.println(moveMax);

    	    // Scannerクラスのインスタンスをクローズ
    		sc.close();
    	} main {
			// AtCoder_C
			Scanner sc = new Scanner(System.in);
			int ans = 0;

			int N = sc.nextInt();
			long now = sc.nextLong();
			long next = 0;

			int moveNow = 0;
			int moveMax = 0;

			for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			}

			if(moveMax < moveNow) {
				moveMax = moveNow;
			}

			System.out.println(moveMax);

    	    // Scannerクラスのインスタンスをクローズ
    		sc.close();
    	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ans = 0; ans 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long now = sc.nextLong(); now sc.nextLong() sc.nextLong sc long next = 0; next 0 int moveNow = 0; moveNow 0 int moveMax = 0; moveMax 0 for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			} int i=1; int i=1; i 1 i<N i N i++ i++ i {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			} {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			} next = sc.nextLong() next sc.nextLong() sc.nextLong sc if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				} now >= next now next {
					moveNow++;
				} moveNow++ moveNow {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				} if(moveMax < moveNow) {
						moveMax = moveNow;
					} moveMax < moveNow moveMax moveNow {
						moveMax = moveNow;
					} moveMax = moveNow moveMax moveNow moveNow = 0 moveNow 0 now = next now next if(moveMax < moveNow) {
				moveMax = moveNow;
			} moveMax < moveNow moveMax moveNow {
				moveMax = moveNow;
			} moveMax = moveNow moveMax moveNow System.out.println(moveMax) System.out.println System.out System System.out moveMax sc.close() sc.close sc String[] args args public class Main {

		public static void main(String[] args) {
			// AtCoder_C
			Scanner sc = new Scanner(System.in);
			int ans = 0;

			int N = sc.nextInt();
			long now = sc.nextLong();
			long next = 0;

			int moveNow = 0;
			int moveMax = 0;

			for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			}

			if(moveMax < moveNow) {
				moveMax = moveNow;
			}

			System.out.println(moveMax);

    	    // Scannerクラスのインスタンスをクローズ
    		sc.close();
    	}
    } public class Main {

		public static void main(String[] args) {
			// AtCoder_C
			Scanner sc = new Scanner(System.in);
			int ans = 0;

			int N = sc.nextInt();
			long now = sc.nextLong();
			long next = 0;

			int moveNow = 0;
			int moveMax = 0;

			for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			}

			if(moveMax < moveNow) {
				moveMax = moveNow;
			}

			System.out.println(moveMax);

    	    // Scannerクラスのインスタンスをクローズ
    		sc.close();
    	}
    } Main
import java.util.Scanner;

	public class Main {

		public static void main(String[] args) {
			// AtCoder_C
			Scanner sc = new Scanner(System.in);
			int ans = 0;

			int N = sc.nextInt();
			long now = sc.nextLong();
			long next = 0;

			int moveNow = 0;
			int moveMax = 0;

			for(int i=1; i<N; i++) {
				next = sc.nextLong();
				if(now >= next) {
					moveNow++;
				} else {
					if(moveMax < moveNow) {
						moveMax = moveNow;
					}
					moveNow = 0;
				}
				now = next;
			}

			if(moveMax < moveNow) {
				moveMax = moveNow;
			}

			System.out.println(moveMax);

    	    // Scannerクラスのインスタンスをクローズ
    		sc.close();
    	}
    }