object Main extends App {
  import java.util.Scanner
  val sc = new Scanner(System.in)

  val k = sc.nextInt()
  val a = sc.nextInt()
  val b = sc.nextInt()
  val result = if ((a to b).exists(_ % k == 0)) "OK" else "NG"
  println(result)
}
