#include <iostream>
using namespace std;

void sol(int m, int h){
    if(h%m==0)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
}

int main() {
	int m,h;
	cin>>m>>h;
	sol(m, h);
	return 0;
}
#include<bits/stdc++.h>
//#include <atcoder/all>

#define rep(i,n)for(int i=0;(i)<(int)(n);i++)
#define REP(i,a,b)for(int i=(int)(a);(i)<=(int)(b);i++)
#define ALL(a)  (a).begin(),(a).end()
#define pb push_back
#define fi first
#define se second
#define sz(x) ((int)x.size())
 
using namespace std;
//using namespace atcoder;
using ld = long double;
using ll = long long;
using P = pair<ll, ll>;
 
template<typename T> bool chmin(T& a, const T& b) { if(a > b){ a = b; return 1;} return 0; }
template<typename T> bool chmax(T& a, const T& b) { if(a < b){ a = b; return 1;} return 0; }

const ll ZER = 0;
const ll MOD = 998244353;
const ll INF = 1e18;


int main(){
    int m, h;
    cin >> m >> h;
    cout << (h % m ? "No" : "Yes") << endl;
}