fun main() {
    val k = Integer.parseInt(readLine())
    val s = readLine()?.split(" ")?.map { Integer.parseInt(it) } ?: return
    for (i in s[0]..s[1]) {
        if (i % k == 0) {
            println("OK")
            return
        }
    }
    println("NG")
}