/*
Jackson Simoneau
SI@UCF 2026 - Intro to Competitive Programming

Solution to https://open.kattis.com/problems/dasblinkenlights
*/

#include <bits/stdc++.h>
using namespace std;

int main() {
    int p, q, s;
    cin >> p >> q >> s;
    for(int i = 1; i <= s; i++) {
        //Check if i is a multiple of both p and q
        if(i % p == 0 && i % q == 0) {
            //Print yes and exit early
            cout << "yes\n";
            return 0;
        }
    }
    //If we get here, there are no solutions up to s
    cout << "no\n";
    return 0;
}