#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pii pair<int, int>
#define vi vector<int>
const int mod = 1e9 + 7;
//const int mod = 998244353;
const int inf = 1e9;

int main() {
    ios::sync_with_stdio(false); cin.tie(nullptr);
    int m, h;
    cin >> m >> h;
    if (h % m) cout << "No\n";
    else cout << "Yes\n";
}
#include <iostream>
#include <stdio.h>
#include <bits/stdc++.h>
#include <queue>
#include <math.h>
#include <bitset>
#define INF 100000000000
#define N 200000
#define ll long long
using namespace std;

int main(){
    int n,w;
    cin>>n>>w;
    int ans = n / w;
    cout<<ans<<endl;
}


