fork download
  1. a = int(input())
  2. b = int(input())
  3. k = 0
  4. for x in range (a - 1):
  5. c = int(input())
  6. if b < c:
  7. k += 1
  8. b = c
  9. print (k)
Success #stdin #stdout 0.13s 14100KB
stdin
5
1
2
3
2
1
stdout
2