import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int result = 0;
        int[] h = new int[n];
        if(n==1){
            System.out.println(0);
            return;
        }
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int now = h[n-1];
        int nowResult = 0;
        for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        }
        System.out.println(result);
        sc.close();
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int result = 0;
        int[] h = new int[n];
        if(n==1){
            System.out.println(0);
            return;
        }
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int now = h[n-1];
        int nowResult = 0;
        for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        }
        System.out.println(result);
        sc.close();
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int result = 0;
        int[] h = new int[n];
        if(n==1){
            System.out.println(0);
            return;
        }
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int now = h[n-1];
        int nowResult = 0;
        for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        }
        System.out.println(result);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int result = 0;
        int[] h = new int[n];
        if(n==1){
            System.out.println(0);
            return;
        }
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int now = h[n-1];
        int nowResult = 0;
        for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        }
        System.out.println(result);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int result = 0; result 0 int[] h = new int[n]; h new int[n] n if(n==1){
            System.out.println(0);
            return;
        } n==1 n 1 {
            System.out.println(0);
            return;
        } System.out.println(0) System.out.println System.out System System.out 0 return; 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 int now = h[n-1]; now h[n-1] h n-1 n 1 int nowResult = 0; nowResult 0 for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        } int i = (n-2); int i = (n-2); i (n-2) n 2 i>-1 i -1 1 i-- i-- i {
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        } {
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        } int tugi = h[i]; tugi h[i] h i if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            } tugi >= now tugi now {
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            } nowResult++ nowResult if(result<nowResult){
                    result = nowResult;
                } result<nowResult result nowResult {
                    result = nowResult;
                } result = nowResult result nowResult {
                nowResult = 0;
            } nowResult = 0 nowResult 0 now = tugi now tugi System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int result = 0;
        int[] h = new int[n];
        if(n==1){
            System.out.println(0);
            return;
        }
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int now = h[n-1];
        int nowResult = 0;
        for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        }
        System.out.println(result);
        sc.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int result = 0;
        int[] h = new int[n];
        if(n==1){
            System.out.println(0);
            return;
        }
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int now = h[n-1];
        int nowResult = 0;
        for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        }
        System.out.println(result);
        sc.close();
    }
} Main
import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int result = 0;
        int[] h = new int[n];
        if(n==1){
            System.out.println(0);
            return;
        }
        for(int i = 0;i<n;i++){
            h[i] = sc.nextInt();
        }
        int now = h[n-1];
        int nowResult = 0;
        for(int i = (n-2);i>-1;i--){
            int tugi = h[i];
            if(tugi >= now){
                nowResult++;
                if(result<nowResult){
                    result = nowResult;
                }
            }else{
                nowResult = 0;
            }
            now = tugi;
        }
        System.out.println(result);
        sc.close();
    }
}