output_description: If Takahashi's submission gets an AC, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N M
attempt: n = input()
  p = input()
  p = p.split()
  q = [p[0]]
  for i in range(int(n)):
      j = max(p[: i + 1])
      if j > p[i]:
          q.append(p[i])
  if p[int(n) - 1] != min(p):
      q.pop(-1)
  print(len(q))
  
problem_description: Statement
  
  Takahashi is participating in a programming contest, AXC001. He has just
  submitted his code to Problem A.  
  The problem has N test cases, all of which must be passed to get an AC
  verdict.  
  Takahashi's submission has passed M cases out of the N test cases.  
  Determine whether Takahashi's submission gets an AC.
samples: [{"input": "3 3", "output": "Yes\n    \n\nAll three test cases have been passed, so his submission gets an AC.\n\n* * *"}, {"input": "3 2", "output": "No\n    \n\nOnly two out of the three test cases have been passed, so his submission does\nnot get an AC.\n\n* * *"}, {"input": "1 1", "output": "Yes"}]