//#include <atcoder/all>
#include <bits/stdc++.h>

using namespace std;


#define rep2(x,fr,to) for(int x=(fr);x<(to);x++)
#define rep(x,to) for(int x=0;x<(to);x++)
#define repr(x,fr,to) for(int x=(fr);x>=(to);x--)
#define all(c) c.begin(),c.end()
#define sz(v) (int)v.size()

typedef long long  ll; typedef vector<int> VI; typedef pair<int,int> pii; typedef vector<ll> VL; const int MD = 1e9 +7; const ll INF = 1e18;
void dbg(){cerr<<"\n";} template <class F,class ...S> void dbg(const F& f, const S&...s){cerr <<f <<": "; dbg(s...);}

//using mint = atcoder::modint1000000007;


int main()
{
	cin.tie(0); ios_base::sync_with_stdio(false);
	int m,h;
	cin >>m >>h;
	int ok = 0;
	if(h%m==0) ok=1;
	puts(ok? "Yes":"No");
	return 0;
}

#include <cstdio>
#include <iostream>
using namespace std;
int n, m; 
int main() {
	cin >> n >> m;
	if (m % n == 0) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
	return 0;
}
