import sys

import numpy as np

N = int(sys.stdin.readline())

A = np.array(sys.stdin.readline().split(), dtype=np.int32)



"""

A = [10,4,8,7,3]

is_left_end = [1,0,1,0,0]

left_idx = [0,0,2,2,2]

というものを作る

"""

is_left_end = np.empty(N, dtype=np.bool)

is_left_end[0] = 1

is_left_end[1:] = (A[1:] > A[:-1])





left_idx = np.where(is_left_end, np.arange(N), 0) # [0,0,2,0,0]

np.maximum.accumulate(left_idx, out=left_idx) # [0,0,2,2,2]



answer = (np.arange(N) - left_idx).max()

print(answer)

import numpy as np

N = int(eval(input()))

A = np.array(input().split(), dtype=np.int32)



"""

A = [10,4,8,7,3]

left_idx = [0,0,2,2,2]

というものを作る

"""

left_idx = np.arange(N) # [0,1,2,3,4]

left_idx[1:][A[:-1] >= A[1:]] = 0 # [0,0,2,0,0] （自身が左以下ならば0に）

np.maximum.accumulate(left_idx, out=left_idx) # [0,0,2,2,2]



answer = (np.arange(N) - left_idx).max()

print(answer)
import sys
import numpy as np

N = int(sys.stdin.readline())
A = np.array(sys.stdin.readline().split(), dtype=np.int32)
"""
A = [10,4,8,7,3]
is_left_end = [1,0,1,0,0]
left_idx = [0,0,2,2,2]
というものを作る
"""
is_left_end = np.empty(N, dtype=np.bool)
is_left_end[0] = 1
is_left_end[1:] = A[1:] > A[:-1]
left_idx = np.where(is_left_end, np.arange(N), 0)  # [0,0,2,0,0]
np.maximum.accumulate(left_idx, out=left_idx)  # [0,0,2,2,2]
answer = (np.arange(N) - left_idx).max()
print(answer)

import numpy as np

N = int(eval(input()))
A = np.array(input().split(), dtype=np.int32)
"""
A = [10,4,8,7,3]
left_idx = [0,0,2,2,2]
というものを作る
"""
left_idx = np.arange(N)  # [0,1,2,3,4]
left_idx[1:][A[:-1] >= A[1:]] = 0  # [0,0,2,0,0] （自身が左以下ならば0に）
np.maximum.accumulate(left_idx, out=left_idx)  # [0,0,2,2,2]
answer = (np.arange(N) - left_idx).max()
print(answer)

-import sys -N = int(sys.stdin.readline()) -A = np.array(sys.stdin.readline().split(), dtype=np.int32) +N = int(eval(input())) +A = np.array(input().split(), dtype=np.int32) -is_left_end = [1,0,1,0,0] -is_left_end = np.empty(N, dtype=np.bool) -is_left_end[0] = 1 -is_left_end[1:] = A[1:] > A[:-1] -left_idx = np.where(is_left_end, np.arange(N), 0)  # [0,0,2,0,0] +left_idx = np.arange(N)  # [0,1,2,3,4] +left_idx[1:][A[:-1] >= A[1:]] = 0  # [0,0,2,0,0] （自身が左以下ならば0に）