Buggy python submission (verdict: Time Limit Exceeded):
def main():
  import numpy as np
  inp1 = input()
  inp2 = input().split()

  a = int(inp1)
  b = np.array(inp2).astype(int)
  ansno = a

  for ii,i in enumerate(b):
    bslice = b[:ii+1]
    minb = np.min(bslice)
    if minb == i:
      pass
    else:
      ansno -=1

  print(ansno)
if __name__ == '__main__':
  main()

Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
inp1 = input()
inp2 = input().split()

a = int(inp1)
#b = np.array(inp2).astype(int)
b = [int(s) for s in inp2]
ansno = a

for ii,i in enumerate(b):
  bslice = b[:ii+1]
  minb = min(bslice)
  if minb == i:
    pass
  else:
    ansno -=1

print(ansno)

Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Runtime Error):
import numpy as np
inp1 = input()
inp2 = input().split()

a = int(inp1)
b = np.array(inp2).astype(int)
ansno = a

for ii,i in enumerate(b):
  bslice = b[:ii+1]
  minb = np.min(bslice)
  if minb == i:
    pass
  else:
    ansno -=1

print(ansno)

Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
inp1 = input()
inp2 = input().split()

a = int(inp1)
b = np.array(inp2).astype(int)
ansno = a

for ii,i in enumerate(b):
  bslice = b[:ii+1]
  minb = np.min(bslice)
  if minb == i:
    pass
  else:
    ansno -=1

print(ansno)

Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
inp1 = input().split()
inp2 = input().split()

a = int(inp1[0])
b = np.array(inp2).astype(int)
ansno = a
maxno = b[0]

for ii,i in enumerate(b):
  bslice = b[:ii+1]
  minb = np.min(bslice)
  if minb != i:
    ansno -=1
  
print(ansno)

Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Runtime Error):
import numpy as np
inp1 = input().split()
inp2 = input().split()

a = int(inp1[0])
b = np.array(inp2).astype(int)
ansno = a
maxno = b[0]

ii = 0
for i in b:
  bslice = b[:ii+1]
  if min(bslice) != i:
    ansno -=1
  ii+=1
print(ansno)


Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
inp1 = input().split()
inp2 = input().split()

a = int(inp1[0])
b = np.array(inp2).astype(int)
ansno = a
maxno = b[0]

ii = 0
for i in b:
  bslice = b[:ii+1]
  if min(bslice) != i:
    ansno -=1
  ii+=1
print(ansno)


Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
inp1 = input().split()
inp2 = input().split()
a = int(inp1[0])
b = inp2
b = [int(s) for s in inp2]
ansno = a
maxno = b[0]

ii = 0
for i in b:
  if ii ==0:
    ii+=1
    continue
  bslice = b[:ii+1]
#  print(ii)
#  print(bslice)
  if min(bslice) != i:
#    print("min(bslice)",min(bslice)," i ",i)
    ansno -=1
  ii+=1
#  print("ansno: ",ansno)
print(ansno)


Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
inp1 = input().split()
inp2 = input().split()
a = int(inp1[0])
b = inp2
b = [int(s) for s in inp2]
ansno = a
maxno = b[0]

ii = 0
for i in b:
  if ii ==0:
    ii+=1
    continue
  bslice = b[:ii+1]
#  print(ii)
#  print(bslice)
  if min(bslice) != i:
#    print("min(bslice)",min(bslice)," i ",i)
    ansno -=1
  ii+=1
#  print("ansno: ",ansno)
print(ansno)


Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
inp1 = input().split()
inp2 = input().split()
a = int(inp1[0])
b = inp2
b = [int(s) for s in inp2]
ansno = a
#print("b: ",b)
#print("b[:3] ",b[:3])
#print("b[:0] ",b[:0])
ii = 0
#print("b[:ii+1] ",b[:ii+1])
for i in b:
  if i ==0:
    continue
#  print(i)
  jj = 0
  for j in b[:ii]:
    if i >= j:
#      print(i, ">=", j,"break")
      ansno -= 1
#      print("ansno: ",ansno)
      break
    else:
      jj+=1
  ii+=1
#print("final ansno: ",ansno)
print(ansno)
      
    

Fixed submission:
n = int(input())
m = input().split()
ppp = list(map(int, m))
max = 2*10**5+1
ans = 0
for p in ppp:
    if p < max:
        ans += 1
        max = p
print(ans)