Public Class Program
  Shared Sub Main()
    Dim n As Long = Long.Parse(Console.ReadLine())
    Dim h As Long() = Array.ConvertAll(Of String, Long)(Console.ReadLine().Split(" "), AddressOf Long.Parse)
    Dim ans As Long = 0
    Dim moveCount As Long = 0
    For i As Long = 0 To n - 2
      If h(i) >= h(i + 1) Then
        moveCount += 1
      Else
        If ans < moveCount Then ans = moveCount
        moveCount = 0
      End If
    Next
    If ans < moveCount Then ans = moveCount
    Console.WriteLine(ans.ToString())
  End Sub
End Class