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.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;


public class Main{
public static void main(String args[]) throws IOException
{
	
	
	
	
      Reader r=new Reader ();
      
  int a=r.ni();
  int b=r.ni();
   int c=r.ni();
   Triple k=gcd(a,b);
   int x=k.x*(c/k.g);
   int y=k.y*(c/k.g);
boolean check=false;

if(c%k.g!=0)

{
    check=false;
}
else{
    if(x>=0&&y>=0)
    {
        check=true;
    }
    else if(x>=0)
    {
          while(true)
          {
            x-=b/k.g;
            y+=a/k.g;
            if(x>=0&&y>=0)
            {
                check=true;
                break;
            }
            else if(x<0)
            {
                check=false;
                break;
            }
          }


    }
    else
    {
         while(true)
          {
            x+=b/k.g;
            y-=a/k.g;
            if(x>=0&&y>=0)
            {
                check=true;
                break;
            }
            else if(y<0)
            {
                check=false;
                break;
            }
          }  
    }
}
if(check==false)
{
    System.out.println("No");
}else {
    System.out.println("Yes");
}

 

	
}
static Triple gcd(int a,int b)
{
    if(b==0)
    {
      return new Triple(1,0,a);
     
    }

    Triple k=gcd(b,a%b);

    return new Triple(k.y,k.x-(a/b)*k.y,k.g);



}



static long pow(long a,long n,long s) {  
  
  if(n==1)
  {
    return s;
  }
  if(n%2==0)
  {
    return pow(a,n/2,s*s);
  }
  else return pow(a,n/2,s*s*a);






    // if(n==0)
    // {
    //     return 1;
    // }
    
    // if(n%2==0)
    // {
    //     long k=pow(a,n/2);
    //     return k*k;
    // }
    // else {
    //     long k=pow(a,n/2);
    //     return a*k*k;
    // }
}

static long mul(long a,long b,long m)
{
if(a==1)
{
    return b%m;
}
  long k=mul(a/2,b,m);
  if(a%2==1)
  {
    return (k%m*2%m+b%m)%m;
  }
    else {
        return ( k%m*2)%m;
    }

}
}


 class Reader 
{ 
    final private int BUFFER_SIZE = 1 << 16; 
    private DataInputStream din; 
    private byte[] buffer; 
    private int bufferPointer, bytesRead; 

    public Reader() 
    { 
        din = new DataInputStream(System.in); 
        buffer = new byte[BUFFER_SIZE]; 
        bufferPointer = bytesRead = 0; 
    } 

    public Reader(String file_name) throws IOException 
    { 
        din = new DataInputStream(new FileInputStream(file_name)); 
        buffer = new byte[BUFFER_SIZE]; 
        bufferPointer = bytesRead = 0; 
    } 

    public String ns() throws IOException 
    { 
        byte[] buf = new byte[64]; // line length 
        int cnt = 0, c; 
        while ((c = read()) != -1) 
        { 
            if (c == '\n') 
                break; 
            buf[cnt++] = (byte) c; 
        } 
        return new String(buf, 0, cnt); 
    } 

    public int ni() throws IOException 
    { 
        int ret = 0; 
        byte c = read(); 
        while (c <= ' ') 
            c = read(); 
        boolean neg = (c == '-'); 
        if (neg) 
            c = read(); 
        do
        { 
            ret = ret * 10 + c - '0'; 
        }  while ((c = read()) >= '0' && c <= '9'); 

        if (neg) 
            return -ret; 
        return ret; 
    } 

    public long nl() throws IOException 
    { 
        long ret = 0; 
        byte c = read(); 
        while (c <= ' ') 
            c = read(); 
        boolean neg = (c == '-'); 
        if (neg) 
            c = read(); 
        do { 
            ret = ret * 10 + c - '0'; 
        } 
        while ((c = read()) >= '0' && c <= '9'); 
        if (neg) 
            return -ret; 
        return ret; 
    } 

    public double nd() throws IOException 
    { 
        double ret = 0, div = 1; 
        byte c = read(); 
        while (c <= ' ') 
            c = read(); 
        boolean neg = (c == '-'); 
        if (neg) 
            c = read(); 

        do { 
            ret = ret * 10 + c - '0'; 
        } 
        while ((c = read()) >= '0' && c <= '9'); 

        if (c == '.') 
        { 
            while ((c = read()) >= '0' && c <= '9') 
            { 
                ret += (c - '0') / (div *= 10); 
            } 
        } 

        if (neg) 
            return -ret; 
        return ret; 
    } 

    private void fillBuffer() throws IOException 
    { 
        bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); 
        if (bytesRead == -1) 
            buffer[0] = -1; 
    } 

    private byte read() throws IOException 
    { 
        if (bufferPointer == bytesRead) 
            fillBuffer(); 
        return buffer[bufferPointer++]; 
    } 
    
  
    

    public void close() throws IOException 
    { 
        if (din == null) 
            return; 
        din.close(); 
    } 
} 
class Triple{
    int x,y,g;
    Triple(int x,int y,int g)
    {
        this.x=x;
        this.y=y;
        this.g=g;
    }
}