import java.util.*;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int max = 0;
        int count = 0;
        int tmp = 0;
        for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        }
		if (max < count) {
			max = count;
		}
        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 max = 0;
        int count = 0;
        int tmp = 0;
        for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        }
		if (max < count) {
			max = count;
		}
        System.out.println(max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int max = 0;
        int count = 0;
        int tmp = 0;
        for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        }
		if (max < count) {
			max = count;
		}
        System.out.println(max);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int max = 0;
        int count = 0;
        int tmp = 0;
        for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        }
		if (max < count) {
			max = count;
		}
        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 max = 0; max 0 int count = 0; count 0 int tmp = 0; tmp 0 for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        } {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        } int Hi = sc.nextInt(); Hi sc.nextInt() sc.nextInt sc if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	} Hi <= tmp Hi tmp {
        		count++;
        	} count++ count {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	} if (max < count) {
        			max = count;
        		} max < count max count {
        			max = count;
        		} max = count max count count = 0 count 0 tmp = Hi tmp Hi if (max < count) {
			max = count;
		} max < count max count {
			max = count;
		} max = count max count 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 max = 0;
        int count = 0;
        int tmp = 0;
        for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        }
		if (max < count) {
			max = count;
		}
        System.out.println(max);
    }
} public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int max = 0;
        int count = 0;
        int tmp = 0;
        for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        }
		if (max < count) {
			max = count;
		}
        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 max = 0;
        int count = 0;
        int tmp = 0;
        for (int i = 0; i < N; i++) {
        	int Hi = sc.nextInt();
        	if (Hi <= tmp) {
        		count++;
        	} else {
        		if (max < count) {
        			max = count;
        		}
        		count = 0;
        	}
        	tmp = Hi;
        }
		if (max < count) {
			max = count;
		}
        System.out.println(max);
    }
}