N = gets.to_i
H = gets.split.map(&:to_i)

max_count = 0
current_count = nil

H.each_cons(2) do |prev, x|
  next(current_count = nil) if prev < x
  current_count = current_count ? current_count.next : 1
  max_count = current_count if max_count < current_count
end

puts max_count