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];
        int cnt = 0;
        int tmp = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        tmp = h[0];
        for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        }
        System.out.println(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];
        int cnt = 0;
        int tmp = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        tmp = h[0];
        for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        }
        System.out.println(max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        int cnt = 0;
        int tmp = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        tmp = h[0];
        for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        }
        System.out.println(max);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        int cnt = 0;
        int tmp = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        tmp = h[0];
        for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        }
        System.out.println(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 int cnt = 0; cnt 0 int tmp = 0; tmp 0 int max = 0; max 0 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] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc tmp = h[0] tmp h[0] h 0 for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        } int i = 1; int i = 1; i 1 i < h.length i h.length h h.length i++ i++ i {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        } {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        } if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            } tmp >= h[i] tmp h[i] h i {
                cnt++;
            } cnt++ cnt {
                cnt = 0;
            } cnt = 0 cnt 0 tmp = h[i] tmp h[i] h i max = Math.max(max, cnt) max Math.max(max, cnt) Math.max Math max cnt System.out.println(max) System.out.println 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];
        int cnt = 0;
        int tmp = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        tmp = h[0];
        for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        }
        System.out.println(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];
        int cnt = 0;
        int tmp = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        tmp = h[0];
        for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        }
        System.out.println(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];
        int cnt = 0;
        int tmp = 0;
        int max = 0;
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        tmp = h[0];
        for (int i = 1; i < h.length; i++) {
            if (tmp >= h[i]) {
                cnt++;
            } else {
                cnt = 0;
            }
            tmp = h[i];
            max = Math.max(max, cnt);
        }
        System.out.println(max);
    }
}