#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c;
  cin >> a >> b >> c;
  int f = 0;
  for (long long int i = 0; i <= 10000; i++) {
    for (long int j = 0; j <= 10000; j++) {
      long long int sum = (a * i) + (b * j);
      if (sum == c) {
        cout << "YES" << endl;
        f = 1;
        break;
      }
    }
    if (f == 1) break;
  }
  if (f == 0) cout << "NO" << endl;
}
