let K = Int(readLine()!)!
let inputs = readLine()!.split(separator: " ")
let A = Int(inputs[0])!
let B = Int(inputs[1])!

var result = false

for i in A...B {
    result = i%K == 0
}

print(result ? "OK" : "NG")