read n
read -a a
h=0
c=0
m=0
for x in ${a[@]}
do
    if((h<x))
    then
        if((m<c))
        then
            m=$c
        fi
        c=0
    else
        c=$((c+1))
    fi
    h=$x
done
echo $((m>c?m:c))
