Buggy python submission (verdict: Runtime Error):
n = input()
h = input().split()
hl = [0]*n
 
for i in range(n):
  hi = h[i]
  hl[i] = int(hi)
 
ans = 1
m = n - 1
high = hl[0]
 
for i in range(m):
  if hl[i+1] >= high:
    ans += 1
    high = hl[i+1]
   else:
    continue
 
print(ans)

Fixed submission:
n = int(input())
h = input().split()
 
ans = 1
m = n-1
high = int(h[0])
 
for i in range(m):
    if int(h[i+1]) >= high:
        ans += 1
        high = int(h[i+1])
    else:
        continue
        
 
print(ans)

Buggy python submission (verdict: Runtime Error):
n = input()
h = input().split()
hl = [0]*n
 
for i in range(n):
  hi = h[i]
  hl[i] = int(hi)
 
ans = 1
m = n - 1
high = hl[0]
 
for i in range(m):
  if hl[i+1] >= high:
    ans += 1
    high = hl[i+1]
   else:
    continue
 
print(ans)
n = input()
h = input().split()
hl = [0]*n

for i in range(n):
  hi = h[i]
  hl[i] = int(hi)

ans = 1
m = n - 1
high = hl[0]
 
for i in range(m):
  if hl[i+1] >= high:
    ans += 1
    high = hl[i+1]
   else:
    continue
 
print(ans)

Fixed submission:
n = int(input())
h = input().split()
 
ans = 1
m = n-1
high = int(h[0])
 
for i in range(m):
    if int(h[i+1]) >= high:
        ans += 1
        high = int(h[i+1])
    else:
        continue
        
 
print(ans)

Buggy python submission (verdict: Runtime Error):
n = input()
h = input().split()
hl = [0]*n

for i in range(n):
  hi = h[i]
  hl[i] = int(hi)

ans = 1
m = n - 1
high = hl[0]
 
for i in range(m):
  if hl[i+1] >= high:
    ans += 1
    high = hl[i+1]
   else:
    continue
 
print(ans)

Fixed submission:
n = int(input())
h = input().split()
 
ans = 1
m = n-1
high = int(h[0])
 
for i in range(m):
    if int(h[i+1]) >= high:
        ans += 1
        high = int(h[i+1])
    else:
        continue
        
 
print(ans)

Buggy python submission (verdict: Runtime Error):
n = int(input())
h = input().split()

ans = 1
m = n - 1
high = int(h[0])

for i in range(m):
  if int(h[i+1]) >= high:
    ans += 1
    high = int(h[i+1])
   else:
    continue

print(ans)

Fixed submission:
n = int(input())
h = input().split()
 
ans = 1
m = n-1
high = int(h[0])
 
for i in range(m):
    if int(h[i+1]) >= high:
        ans += 1
        high = int(h[i+1])
    else:
        continue
        
 
print(ans)

Buggy python submission (verdict: Runtime Error):
n = int(input())
h = map(int, input().split())

ans = 1
m = n-1
high = h[0]

for i in range(m):
    if h[i+1] >= high:
        ans += 1
        high = h[i+1]
    else:
        continue
        

print(ans)



Fixed submission:
n = int(input())
h = input().split()
 
ans = 1
m = n-1
high = int(h[0])
 
for i in range(m):
    if int(h[i+1]) >= high:
        ans += 1
        high = int(h[i+1])
    else:
        continue
        
 
print(ans)

Buggy python submission (verdict: Runtime Error):
n = int(input())
h = map(int, input().split())

ans = 1
m = n-1
high = ih[0]

for i in range(m):
    if h[i+1] >= high:
        ans += 1
        high = h[i+1]
    else:
        continue
        

print(ans)



Fixed submission:
n = int(input())
h = input().split()
 
ans = 1
m = n-1
high = int(h[0])
 
for i in range(m):
    if int(h[i+1]) >= high:
        ans += 1
        high = int(h[i+1])
    else:
        continue
        
 
print(ans)