n = int(input()) h = list(map(int, input().split())) ans = [] res = 0 if (n == 1): print(0) else: for i in range(n-1): if (h[i+1] <= h[i]): res += 1 else: res = 0 ans.append(res) print(max(ans))