#include<iostream>
using namespace std;
int gcd(int a,int b)
{
if (a<b) swap(a,b);
return b? gcd(b,a%b):a;
}
int main()
{
//a*x + b*y =k
int n=gcd(a,b);
if (n%k)
printf ("No");
else
printf ("Yes");
return 0;
}