import java.util.*;

public class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int[] h = new int[n];
	for (int i=0; i<n; i++) h[i] = sc.nextInt();
	int mae = h[0];
	int max = 0;
	int count = 0;
	for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	}
	System.out.print(max);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int[] h = new int[n];
	for (int i=0; i<n; i++) h[i] = sc.nextInt();
	int mae = h[0];
	int max = 0;
	int count = 0;
	for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	}
	System.out.print(max);
    }
} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int[] h = new int[n];
	for (int i=0; i<n; i++) h[i] = sc.nextInt();
	int mae = h[0];
	int max = 0;
	int count = 0;
	for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	}
	System.out.print(max);
    } main {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int[] h = new int[n];
	for (int i=0; i<n; i++) h[i] = sc.nextInt();
	int mae = h[0];
	int max = 0;
	int count = 0;
	for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	}
	System.out.print(max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] h = new int[n]; h new int[n] n for (int i=0; i<n; i++) h[i] = sc.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i h[i] = sc.nextInt(); h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int mae = h[0]; mae h[0] h 0 int max = 0; max 0 int count = 0; count 0 for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	} int i=1; int i=1; i 1 i<n i n i++ i++ i {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	} {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	} if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    } h[i] <= mae h[i] h i mae {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } mae = h[i] mae h[i] h i count++ count if (count > max)
		    max = count; count > max count max max = count max count {
		mae = h[i];
		count = 0;
	    } mae = h[i] mae h[i] h i count = 0 count 0 System.out.print(max) System.out.print System.out System System.out max String[] args args public class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int[] h = new int[n];
	for (int i=0; i<n; i++) h[i] = sc.nextInt();
	int mae = h[0];
	int max = 0;
	int count = 0;
	for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	}
	System.out.print(max);
    }
} public class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int[] h = new int[n];
	for (int i=0; i<n; i++) h[i] = sc.nextInt();
	int mae = h[0];
	int max = 0;
	int count = 0;
	for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	}
	System.out.print(max);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	int[] h = new int[n];
	for (int i=0; i<n; i++) h[i] = sc.nextInt();
	int mae = h[0];
	int max = 0;
	int count = 0;
	for (int i=1; i<n; i++) {
	    if (h[i] <= mae) {
		mae = h[i];
		count++;
		if (count > max)
		    max = count;
	    } else {
		mae = h[i];
		count = 0;
	    }
	}
	System.out.print(max);
    }
}
