output_description: Print `Yes` if you will turn on the air conditioner; print `No` otherwise.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      X
attempt: n, q = map(int, input().split())
  cn = list(map(int, input().split()))
  s = [-1] * (n + 1)
  t = [0] * n
  for i in range(n):
      j = cn[i]
      if s[j] == -1:
          t[i] = -1
          s[j] = i
      else:
          t[i] = s[j]
          s[j] = i
  
  ans = [0] * q
  for i in range(q):
      count = 0
      l, r = map(int, input().split())
      for j in range(l - 1, r):
          if t[j] >= l - 1:
              count += 1
      ans[i] = r - l + 1 - count
  
  for i in ans:
      print(i)
  
problem_description: Statement
  
  You will turn on the air conditioner if, and only if, the temperature of the
  room is 30 degrees Celsius or above.
  
  The current temperature of the room is X degrees Celsius. Will you turn on the
  air conditioner?
samples: [{"input": "25", "output": "No\n    \n\n* * *"}, {"input": "30", "output": "Yes"}]