Buggy python submission (verdict: Runtime Error):
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
idx = 0
index = 0
count = 0

for i in range(len(nums)-index-1):
    if nums[index+i] >= nums[index+i+1]:
        count = count + 1
        idx = index+i+1
        index = index + 1
        if count >= maxCount:
            maxCount = count
    else:
        idx = 0
        count = 0
        break
        
print(maxCount)
        


Fixed submission:
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
index = -1
count = 0

for i in range(len(nums)-1):
    if nums[i] >= nums[i+1]:
        count = count + 1
        if count >= maxCount:
            maxCount = count
    else:
        count = 0
        
print(maxCount)

Buggy python submission (verdict: Time Limit Exceeded):
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
idx = 0

for index in range(len(nums)):
    count = 0
    if idx > index:
        break
    for i in range(len(nums)-index-1):
        if nums[index+i] >= nums[index+i+1]:
            count = count + 1
            idx = index+i+1
            if count >= maxCount:
                maxCount = count
        else:
            idx = 0
            break
        
print(maxCount)
        


Fixed submission:
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
index = -1
count = 0

for i in range(len(nums)-1):
    if nums[i] >= nums[i+1]:
        count = count + 1
        if count >= maxCount:
            maxCount = count
    else:
        count = 0
        
print(maxCount)

Buggy python submission (verdict: Time Limit Exceeded):
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
idx = 0

for index, item in enumerate(nums):
    count = 0
    if idx > index:
        break
    for i in range(len(nums)-index-1):
        if nums[index+i] >= nums[index+i+1]:
            count = count + 1
            idx = index+i+1
            if count >= maxCount:
                maxCount = count
        else:
            idx = 0
            break
        
print(maxCount)
        


Fixed submission:
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
index = -1
count = 0

for i in range(len(nums)-1):
    if nums[i] >= nums[i+1]:
        count = count + 1
        if count >= maxCount:
            maxCount = count
    else:
        count = 0
        
print(maxCount)

Buggy python submission (verdict: Runtime Error):
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
idx = 0

for index, item in enumerate(nums):
    count = 0
    if idx > index:
        break
    for i in range(len(nums)-index-1):
        kaisuu += 1
        if nums[index+i] >= nums[index+i+1]:
            count = count + 1
            idx = index+i+1
            if count >= maxCount:
                maxCount = count
        else:
            break
        
print(maxCount)
        


Fixed submission:
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
index = -1
count = 0

for i in range(len(nums)-1):
    if nums[i] >= nums[i+1]:
        count = count + 1
        if count >= maxCount:
            maxCount = count
    else:
        count = 0
        
print(maxCount)

Buggy python submission (verdict: Time Limit Exceeded):
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0

for index, item in enumerate(nums):
    count = 0
    for i in range(len(nums)-index-1):
        if nums[index+i] >= nums[index+i+1]:
            count = count + 1
            if count >= maxCount:
                maxCount = count
        else:
            break
        

print(maxCount)
        


Fixed submission:
str = [input() for i in range(2)]
nums = list(map(int, str[1].split()))
maxCount = 0
index = -1
count = 0

for i in range(len(nums)-1):
    if nums[i] >= nums[i+1]:
        count = count + 1
        if count >= maxCount:
            maxCount = count
    else:
        count = 0
        
print(maxCount)