#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
using ll = long long;
// using P = pair<int, int>;



int main() { 
  int m,h;
  cin >> m >> h;

  bool a = false;
  for(int i = 1; i <= 1001; i++){
    if(m*i == h){
      a = true;
    }
  }

  if(a) cout << "Yes" << endl;
  else cout << "No" << endl;



}




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

#define PI 3.14159265359

int main(){
  int M, H;
  cin >> M >> H;
  if (H % M == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
}
