output_description: If he can achieve the objective, print `OK`; if he cannot, print `NG`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      K
      A B
attempt: A = list(map(int, input().split()))  # 入力のときに N を使う必要はありません
  i_max = 0
  i_count = 0
  j_count = 0
  
  for x in range(1, A[2] + 1):
      if i_max < ((A[0] * x) // A[1] - A[0] * (x // A[1])):
          i_max = (A[0] * x) // A[1] - A[0] * (x // A[1])
          i_count = x
      if (x - i_count) == 1:
          j_count = j_count + 1
      if j_count == 2:
          break
  
  print(i_count)
  
problem_description: Statement
  
  Takahashi the Jumbo will practice golf.
  
  His objective is to get a carry distance that is a multiple of K, while he can
  only make a carry distance of between A and B (inclusive).
  
  If he can achieve the objective, print `OK`; if he cannot, print `NG`.
samples: [{"input": "7\n    500 600", "output": "OK\n    \n\nAmong the multiples of 7, for example, 567 lies between 500 and 600.\n\n* * *"}, {"input": "4\n    5 7", "output": "NG\n    \n\nNo multiple of 4 lies between 5 and 7.\n\n* * *"}, {"input": "1\n    11 11", "output": "OK"}]