#include <bits/stdc++.h>

using namespace std;
using ll = long long;

const int N = 5e5 + 5;

int main() {
	ios :: sync_with_stdio(0), cin.tie(0);
	ll s, p;
	cin >> s >> p;
	for (ll i = 2; i * i <= p; ++i) {
		if (p % i == 0) {
			if (i + (p / i) == s) {
				cout << "Yes";
				return 0;
			}
		}
	}
	if (p + 1 == s) {
		cout << "Yes";
	}
	else {
		cout << "No";
	}
	return 0;
}
#include <bits/stdc++.h>
using namespace std;

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