#include <bits/stdc++.h>
using namespace std;

#define ll int64_t
#define all(x) x.begin(), x.end()
#define sz(x) (int)x.size()
#define nl "\n"

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define F0R(i, n) FOR(i, 0, n)
#define ROF(i, n, a) for(int i = n; i >= a; --i)
#define R0F(i, n) ROF(i, n, 0)
#define trav(x, a) for (auto& x : a)

#define INF 0x3f3f3f3f
#define INFLL 0x3f3f3f3f3f3f3f3f

// read
template<class T> void read(T &x){cin >> x;}
template<class T, size_t S> void read(array<T, S> &a){trav(x, a) read(x);}
template<class H, class T> void read(pair<H, T> pht){cin >> pht.first >> pht.second;}
template<class T> void read(vector<T> &v){trav(x, v){read(x);}}
template<class H, class... T> void read(H &h, T &...t) { read(h); read(t...); }
// print
string to_string(char c) {return string(1, c);}
string to_string(bool b) {return b?"true":"false";}
string to_string(const char* s) {return string(s);}
string to_string(string s) {return s;}
template<class T> string to_string(T v) {bool f=1; string res;for(auto& x: v){if(!f){res+=' ';}f=0;res+=to_string(x);}return res;}
template<class A> void write(A x) {	cout << to_string(x);}
template<class H, class... T> void write(const H& h, const T&... t) { 	write(h);	write(t...);}
void print() {write("\n");}
template<class H, class... T> void print(const H& h, const T&... t) { write(h);if(sizeof...(t))write(' ');print(t...);}

// Check Limits
const int mxN = 1e5+3;


void solve(){
    int M, H; read(M, H);
    if(H%M==0){
        print("Yes");
    } else{
        print("No");
    }
}

int main(){
    cin.tie(0)->sync_with_stdio(0);
    solve();
}

#include<bits/stdc++.h>
#define int long long
#define rint regester int
const int maxn = 1e6 + 10;
const int INF = 1e9;
using std::ios;
using std::cin;
using std::cout;
using std::max;
using std::min;
using std::sort;
using std::unique;
using std::lower_bound;
using std::swap;
using std::abs;
using std::acos;
using std::queue;
using std::map;
using std::string;
int read(){int x = 0,f = 1; char ch = getchar(); while(ch < '0' || ch > '9'){if(ch == '-')f = -1; ch = getchar();}while(ch >= '0' && ch <= '9'){x = (x << 1) + (x << 3) + (ch ^ 48); ch = getchar();} return x * f;}
int n, h;
signed main(){
	n = read(), h = read();
	if(h % n == 0)cout << "Yes\n";else cout << "No\n";
} 