N=gets.to_i
as=gets.split.map(&:to_i)
hs=Array.new(N,0)
for i in 0..N-2
    hs[i]=1 if as[i]>=as[i+1]
end
ans=0
cnt=0
hs.each do |i|
    if i==0
        ans=ans < cnt ? cnt : ans
        cnt=0
    else
        cnt+=1
    end
end
puts ans
