import           Control.Monad
import           Control.Applicative

main :: IO ()
main = do
  [a, b, c] <- map read . words <$> getLine

  putStrLn $ if ds a b c then "Yes" else "No"

ds :: Int -> Int -> Int -> Bool
ds a b c = elem c $ f a b [] [1 .. b]

f :: Int -> Int -> [Int] -> [Int] -> [Int]
f a b d (idx : idxs) | (a * idx) `mod` b == 0 = d ++ [0]
                     | otherwise = f a b (d ++ [(a * idx) `mod` b]) idxs