output_description: If the condition is satisfied, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: # ABC061C
  import sys
  
  N, K = map(int, input().split())
  ab = [list(map(int, input().split())) for _ in range(N)]
  now = 0
  ans = ""
  for a, b in ab:
      for i in range(b):
          now += 1
          if now == K:
              print(a)
              sys.exit(0)
  
problem_description: Statement
  
  You are given three integers A, B and C. Determine whether C is not less than
  A and not greater than B.
samples: [{"input": "1 3 2", "output": "Yes\n    \n\nC=2 is not less than A=1 and not greater than B=3, and thus the output should\nbe `Yes`.\n\n* * *"}, {"input": "6 5 4", "output": "No\n    \n\nC=4 is less than A=6, and thus the output should be `No`.\n\n* * *"}, {"input": "2 2 2", "output": "Yes"}]