(defn input []
  (->> (clojure.string/split (read-line) #"\s")
    (map #(Integer/parseInt %))))

(defn ChooseIntegers [[A B C]]
  (if ((complement empty?) (eduction
                             (comp (take B)
                               (map #(rem % B))
                               (filter (partial = C))
                               (take 1))
                             (iterate (partial + A) A)))
    "YES"
    "NO"))

(->> (input)
  ChooseIntegers
  println)