#include              <bits/stdc++.h>
#define ll            long long int
#define w(t)          int t; cin>>t; while(t--)
#define F             first
#define S             second
#define pb            push_back
#define mp            make_pair
#define pii           pair<int,int>
#define mii           map<int,int>
#define sp(x,y)       fixed<<setprecision(y)<<x
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int m,h;
    cin>>m>>h;
    if(h%m==0)cout<<"Yes";
    else cout<<"No";
    return 0;
}
#include <iostream>
using namespace std;

int main()
{
    int M,H;

    cin>>M>>H;

    if(H%M==0)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;

    return 0;
}