//Starting in the name of Lord
#include<bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define Yes cout<<"Yes"<<endl
#define yes cout<<"yes"<<endl
#define No cout<<"No"<<endl
#define NO cout<<"NO"<<endl
#define no cout<<"no"<<endl
#define YES cout<<"YES"<<endl
#define asort(x) sort((x).begin(),(x).end())
#define rsort(x) reverse(x.begin(),x.end())
#define ll long long
#define deciset(x) cout <<setprecision(x) <<fixed;
#define endl "\n"
#define pb push_back
#define mp make_pair
#define jotokkjon while
#define PI 2*acos(0.0)
#define boost ios::sync_with_stdio(false);cin.tie(0)
void solve()
{
   ll a,b;
   cin>>a>>b;
   if( b % a) No;
   else Yes;

   



}
int main()
{
 
    boost;
    #ifndef ONLINE_JUDGE
    freopen("C:/Users/User/Desktop/C/input.txt", "r", stdin);
    freopen("C:/Users/User/Desktop/C/output.txt", "w", stdout);
     #endif
    ll t=1;
   // cin>>t;
    while(t--)
    {
        solve();
    }
}
#include <bits/stdc++.h>
using namespace std;

int main() {
    int M, H;
    cin >> M >> H;

    cout << ((H % M == 0) ? "Yes" : "No") << endl;
    return 0;
}