Buggy python submission (verdict: Runtime Error):
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 0
while True:
    if nums[right+1] <= nums[right]:
        count += 1    
    else:
        count = 0
        
    if max_count < count:
        max_count = count
        
    right += 1
    if right == N-1:
        break
    
print(max_count)

Fixed submission:
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 0
while True:
    if right == N-1:
        break
    
    if nums[right+1] <= nums[right]:
        count += 1    
    else:
        count = 0
        
    if max_count < count:
        max_count = count
        
    right += 1
    
print(max_count)

Buggy python submission (verdict: Runtime Error):
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = []
right = 0
while True:
    if nums[right+1] <= nums[right]:
        count += 1    
    else:
        max_count.append(count)
        count = 0
        
    right += 1
    if right == N-1:
        break
    
print(max(max_count))

Fixed submission:
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 0
while True:
    if right == N-1:
        break
    
    if nums[right+1] <= nums[right]:
        count += 1    
    else:
        count = 0
        
    if max_count < count:
        max_count = count
        
    right += 1
    
print(max_count)

Buggy python submission (verdict: Runtime Error):
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 0
while True:
    if nums[right+1] <= nums[right]:
        count +=1
        right += 1
    else:
        count = 0
        right += 1
        
    if max_count < count:
        max_count = count
    
    if right == N-1:
        break
    
print(max_count)

Fixed submission:
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 0
while True:
    if right == N-1:
        break
    
    if nums[right+1] <= nums[right]:
        count += 1    
    else:
        count = 0
        
    if max_count < count:
        max_count = count
        
    right += 1
    
print(max_count)

Buggy python submission (verdict: Runtime Error):
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 1
while True:
    if nums[right] <= nums[right-1]:
        count +=1
        right += 1
    else:
        count = 0
        right += 1
        
    if max_count < count:
        max_count = count
    
    if right == N:
        break
    
print(max_count)

Fixed submission:
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 0
while True:
    if right == N-1:
        break
    
    if nums[right+1] <= nums[right]:
        count += 1    
    else:
        count = 0
        
    if max_count < count:
        max_count = count
        
    right += 1
    
print(max_count)

Buggy python submission (verdict: Runtime Error):
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
left = 0
right = 1
while True:
    if nums[right] <= nums[right-1]:
        count +=1
        right += 1
    else:
        count = 0
        right += 1
        left = right - 1
        
    if max_count < count:
        max_count = count
    
    if right == N:
        break
    
print(max_count)

Fixed submission:
N = int(input())
nums = list(map(int, input().split()))
count = 0
max_count = 0
right = 0
while True:
    if right == N-1:
        break
    
    if nums[right+1] <= nums[right]:
        count += 1    
    else:
        count = 0
        
    if max_count < count:
        max_count = count
        
    right += 1
    
print(max_count)