import scala.io.StdIn

object Main extends App {
  val Array(a, b, c) = StdIn.readLine.split(" ").map(_.toInt)

  def f(a:Int, b:Int, c:Int):Int = {
    def rec(acc:Int):Int = {
      if(acc % a == 0) acc
      else if(acc > a * b) -1
      else rec(acc+b)
    }
    rec(c)
  }
  val res = f(a, b, c)
  val ans = if(res < 0) "NO" else "YES"
  println(ans)
}