#include<bits/stdc++.h>
using namespace std;
#define endl "\n"
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
typedef long long ll;
#define test ll t;cin>>t;while(t--)
#define f first
#define s second
#define pb push_back
#define pop pop_back
#define int long long int
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define mod 1000000007
#define inf 1LL<<60

int32_t main()
{
	fast;
    /*freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);*/
	int h,m;
	cin>>m>>h;
	if(h%m==0)
        cout<<"Yes"<<"\n";
    else
        cout<<"No"<<"\n";
	return 0;
}


#include<bits/stdc++.h>
using namespace std;
int main(void)
{
	int a,b;
	cin>>a>>b;
	if(b%a==0) cout<<"Yes\n";
	else cout<<"No\n";
}