import Data.Ratio

main :: IO ()
main = do
  [k, a, b] <- map read . words <$> getContents
  putStrLn $ if solve k a b then "OK" else "NG"

solve :: Int -> Int -> Int -> Bool
solve k a b = ceiling (a % k) <= floor (b % k)