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