using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
int [] a = {1,2,3,1,4};
int longestLength = 0;
int curLength = 0;
int curBiggest = 0;
for(int i=0;i<a.Length;i++){
if(a[i]>=curBiggest){
curLength++;
curBiggest = a[i];
}else{
if(curLength>longestLength){
longestLength=curLength;
}
curLength = 1;
Console.WriteLine(longestLength);