import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val k = sc.nextInt()
  val (a, b) = (sc.nextInt(), sc.nextInt())

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