#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c;
  cin >> a >> b >> c;
  int i = 0;
  while (a * i <= c) {
    double x = c - a * i;
    if (floor(x / b) == x / b) {
      cout << "YES";
      return 0;
    }
    i++;
  }
  cout << "NO";
}
