object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datA, datB, datC) = readLine.split(" ").map(_.toInt)
    val ans = (datA to (datA * datB) by datA).exists(a => (a % datB) == datC)
    println(if(ans) "Yes" else "No")
  }
}
