#include<cstdio>
#include<algorithm>
using namespace std;
int main(void)
{
	int m,h;
	scanf("%d %d",&m,&h);
	if(h%m==0) printf("Yes\n");
	else printf("No\n");
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
typedef long long ll;
#define F first
#define S second 
#define YES(n)cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl

int main(){
    int M,H;
    cin>>M>>H;
    Yes(H%M==0);
    return 0;
}