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:
// package Mathematical.Diophantine;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;



public class TheEquation {
    public static Triplet gcd(int a,int b){
        if(a==0){
            return new Triplet(0,1,b);
        }
        Triplet prev=gcd(b%a,a);
        return new Triplet(prev.y-(b/a)*prev.x,prev.x,prev.g);
    }
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String line[]=br.readLine().split(" ");
        int a=Integer.parseInt(line[0]);
        int b=Integer.parseInt(line[1]);
        int c=Integer.parseInt(line[2]);
//        line=br.readLine().split(" ");
//        int x1=Integer.parseInt(line[0]);
//        int x2=Integer.parseInt(line[1]);
//        line=br.readLine().split(" ");
//        int y1=Integer.parseInt(line[0]);
//        int y2=Integer.parseInt(line[1]);
        int x1=0,y1=0,x2=Integer.MAX_VALUE,y2=Integer.MAX_VALUE;
        Triplet start=gcd(Math.abs(a),Math.abs(b));
        if(c%start.g!=0){
            System.out.println("No");
            return;
        }
        long x0=start.x*(c/start.g);
        long y0=start.y*(c/start.g);
        if(a<0){
            x0=-x0;
        }
        if(b<0){
            y0=-y0;
        }
//        System.out.println(x0+" "+y0);
        double k;
        int g=start.g;
        long xl1,xl2,xr1,xr2;
        k=(double)(x1-x0)/(b/g);
        if((x1-x0)%(b/g)==0){
            xl1=x1;
        }
        else{
            if(b/g>0){
                long knew=(long)Math.floor(k)+1;
//                System.out.println(k+" "+knew);
                xl1=x0+knew*(b/g);
//                System.out.println(xl1);
            }
            else{
                long knew=(long)Math.floor(k);
                xl1=x0+knew*(b/g);
            }
        }
        k=(double)(x2-x0)/(b/g);
        if((x2-x0)%(b/g)==0){
            xl2=x2;
        }
        else{
            if(b/g>0){
                long knew=(long)Math.floor(k);
                xl2=x0+knew*(b/g);
            }
            else{
                long knew=(long)Math.floor(k)+1;
                xl2=x0+knew*(b/g);
            }
        }
//        System.out.println(x0+" "+y0);
//        System.out.println(xl1+" "+xl2);
        k=(double)(y0-y1)/(a/g);
        if((y0-y1)%(a/g)==0){
            xr1=x0+(long)k*(b/g);
        }
        else{
            if(a/g>0){
                long knew=(long)Math.floor(k);
                xr1=x0+knew*(b/g);
            }
            else{
                long knew=(long)Math.floor(k)+1;
                xr1=x0+knew*(b/g);
            }
        }
        k=(double)(y0-y2)/(a/g);
        if((y0-y2)%(a/g)==0){
            xr2=x0+(long)k*(b/g);
        }
        else{
            if(a/g>0){
                long knew=(long)Math.floor(k)+1;
//                System.out.println(k+" "+knew);
//                System.out.println(y0-k*(a/g));
                xr2=x0+knew*(b/g);
            }
            else{
                long knew=(long)Math.floor(k);
                xr2=x0+knew*(b/g);
            }
        }
//        System.out.println(xr1+" "+xr2);
        if(xl1>xl2){
            long temp=xl1;
            xl1=xl2;
            xl2=temp;
        }
        if(xr1>xr2){
            long temp=xr1;
            xr1=xr2;
            xr2=temp;
        }
        long xl=Math.max(xl1,xr1);
        long xr=Math.min(xl2,xr2);
//        System.out.println(xl1+" "+xl2);
//        System.out.println(xr1+" "+xr2);
//        System.out.println(xl+" "+xr);
        if(xr>=xl&&xr>=0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
//        System.out.println((xr-xl)/(b/g)+1);
    }
}
class Triplet{
    int x,y,g;
    public Triplet(int x,int y,int g){
        this.x=x;
        this.y=y;
        this.g=g;
    }
}