main :: IO ()
main = do
  [a, b, c] <- map read . words <$> getLine :: IO [Int]
  let multipleList = map (`mod` b) . takeWhile (<=100) $ [a1 + a2 | a1 <- [0, a * 2..], a2 <- [a, a * 2..]]
  putStrLn $ if c `elem`multipleList then "YES" else "NO"
