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: N, M = map(int, input().split())
  array = [tuple(int(x) for x in input().split()) for x in range(M)]
  score = [-float("inf") for x in range(N)]
  score[0] = 0
  check = 0
  while True:
      if N == 0:
          check = score[-1]
      elif N < 0:
          if check == score[-1]:
              pass
          elif check > score[-1]:
              print("inf")
              break
          elif check < score[-1]:
              print(check)
              break
      now = score.copy()
      for j in array:
          if score[j[0] - 1] + j[2] > score[j[1] - 1]:
              score[j[1] - 1] = score[j[0] - 1] + j[2]
      if now == score:
          print(score[-1])
          break
      N += -1
  
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"}]