import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [a, b, c] <- fmap read . words <$> getLine :: IO [Int]
    let p1 = any ((== c) . (`mod` b)) $ fmap (a *) [1 .. b]
    if p1
        then putStrLn "YES"
        else putStrLn "NO"