#include <bits/stdc++.h>
using namespace std;
int const N = 10000 + 20;
int a, b, c;
bool mark[N];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> a >> b >> c;
  for (int i = 0; i <= c; i += a) {
    for (int j = i; j <= c; j += b) {
      if (mark[j]) break;
      mark[j] = 1;
    }
  }
  if (mark[c]) return cout << "YES", 0;
  return cout << "NO", 0;
}
