Problem: Dante is engaged in a fight with "The Savior". Before he can fight it with his sword, he needs to break its shields. He has two guns, Ebony and Ivory, each of them is able to perform any non-negative number of shots.

For every bullet that hits the shield, Ebony deals a units of damage while Ivory deals b units of damage. In order to break the shield Dante has to deal exactly c units of damage. Find out if this is possible.

Input

The first line of the input contains three integers a, b, c (1 ≤ a, b ≤ 100, 1 ≤ c ≤ 10 000) — the number of units of damage dealt by Ebony gun and Ivory gun, and the total number of damage required to break the shield, respectively.

Output

Print "Yes" (without quotes) if Dante can deal exactly c damage to the shield and "No" (without quotes) otherwise.

Examples

Input

4 6 15


Output

No


Input

3 2 7


Output

Yes


Input

6 11 6


Output

Yes

Note

In the second sample, Dante can fire 1 bullet from Ebony and 2 from Ivory to deal exactly 1·3 + 2·2 = 7 damage. In the third sample, Dante can fire 1 bullet from ebony and no bullets from ivory to do 1·6 + 0·11 = 6 damage. 

Solution (in JAVA):

Solution:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {
    static int INPUT_BUFF = (1<<15);
    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;
        InputReader(InputStream is) {
            reader = new BufferedReader(new InputStreamReader(is), INPUT_BUFF);
            tokenizer = null;
        }

        String next() {
            while(tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }

    static InputReader in = new InputReader(System.in);
    static PrintWriter out = new PrintWriter(System.out);

    static void solve() {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        long x = 1, y = 0, x1 = 0, y1 = 1, r, q, a1 = a, b1 = b;
        while(b1 > 0) {
            q = a1 / b1;

            r = a1;
            a1 = b1;
            b1 = r - q * b1;

            r = x;
            x = x1;
            x1 = r - q * x1;

            r = y;
            y = y1;
            y1 = r - q * y1;
        }

        String res = "No";
        if(c%a1 == 0) {
            q = c/a1;
            long x0 = -x*q*a1, y0 = y*q*a1;
            long l1 = (x0 < 0 || x0%b == 0) ? x0 / b : x0/b+1;
            long r1 = (y0 > 0 || y0%a == 0) ? y0 / a : y0/a-1;

            if(l1 <= r1) {
                x0 = x0 + l1*b/a1;
                y0 = y0 - l1*a/a1;
                assert(x0 >= 0 && x0 <= c/a);
                assert(y0 >= 0 && y0 <= c/b);
                res = "Yes";
            }
        }
        out.println(res);
    }

    public static void main(String[] args) {
        int tests = 1;
        for(int i = 1; i <= tests; i++) {
            solve();
        }
        out.close();
    }
}