Buggy python submission (verdict: Runtime Error):
n=int(input())
h[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
while 1:
    for k in range(a,n-1):
        if h[k]>=h[k+1] :
            ans+=1
            a+=1
        else:
            ans1.append(ans)
            ans=0
            a+=1
            break
    if a>=n-1:
        ans1.append(ans)
        break
print(max(ans1))


Fixed submission:
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
while 1:
    for k in range(a,n-1):
        if h[k]>=h[k+1] :
            ans+=1
            a+=1
        else:
            ans1.append(ans)
            ans=0
            a+=1
            break
    if a>=n-1:
        ans1.append(ans)
        break
print(max(ans1))

Buggy python submission (verdict: Runtime Error):
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=1
for i in range(a,n-1):
  for k in range(i,n-1):
    if h[k]>=h[k+1]:
      ans+=1
      a+=1
    else:
      ans1.append(ans)
      ans=0
      break
print(max(ans1))


Fixed submission:
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
while 1:
    for k in range(a,n-1):
        if h[k]>=h[k+1] :
            ans+=1
            a+=1
        else:
            ans1.append(ans)
            ans=0
            a+=1
            break
    if a>=n-1:
        ans1.append(ans)
        break
print(max(ans1))

Buggy python submission (verdict: Runtime Error):
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=1
for i in range(a,n-1):
  for k in range(i,n):
    if h[k]>=h[k+1]:
      ans+=1
      a+=1
    else:
      ans1.append(ans)
      ans=0
      break
print(max(ans1))


Fixed submission:
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
while 1:
    for k in range(a,n-1):
        if h[k]>=h[k+1] :
            ans+=1
            a+=1
        else:
            ans1.append(ans)
            ans=0
            a+=1
            break
    if a>=n-1:
        ans1.append(ans)
        break
print(max(ans1))

Buggy python submission (verdict: Runtime Error):
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
for i in range(a,n-1):
  for k in range(i,n-1):
    a=0
    if h[k]>=h[k+1]:
      ans+=1
      a+=1
    else:
      ans1.append(ans)
      ans=0
      break
print(max(ans1))

Fixed submission:
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
while 1:
    for k in range(a,n-1):
        if h[k]>=h[k+1] :
            ans+=1
            a+=1
        else:
            ans1.append(ans)
            ans=0
            a+=1
            break
    if a>=n-1:
        ans1.append(ans)
        break
print(max(ans1))

Buggy python submission (verdict: Runtime Error):
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
for i in range(n-2):
  for k in range(i+1+a,n-1):
    a=0
    if h[i]>=h[i+1]:
      ans+=1
      a+=1
    else:
      ans1.append(ans)
      ans=0
      break
print(max(ans1))
    
    

Fixed submission:
n=int(input())
h=[int(i) for i in input().split()]
ans=0
ans1=[]
a=0
while 1:
    for k in range(a,n-1):
        if h[k]>=h[k+1] :
            ans+=1
            a+=1
        else:
            ans1.append(ans)
            ans=0
            a+=1
            break
    if a>=n-1:
        ans1.append(ans)
        break
print(max(ans1))