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

short M, H;

int main()
{
	cin>>M>>H;
	if(H%M) cout<<"No\n";
	else cout<<"Yes\n";

	return 0;
}
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, s, n) for (ll i = (s); i < (ll)(n); i++)
int main() {
  ll A, B;
  cin >> A >> B;
  if(B % A == 0) {
    cout << "Yes";
  }
  else {
    cout << "No";
  }
}