main = do
    k <- readLn :: IO Int
    [a,b] <- map read . words <$> getLine :: IO[Int]
    let c = (a+k-1) `div` k * k
    putStrLn $ if c <= b
                  then "OK"
                  else "NG"
