#include<bits/stdc++.h>

using namespace std;

long long a,b;

#define yes puts("Yes")
#define no puts("No")

int main (){
	cin >> a>>b;
	if(b + 1 == a) {
		yes;
		return 0;
	}
	for(long long i = 1;i * i <= b;i++){
		if(b % i == 0){
			long long x = b/i;
			if(x + i == a) {
				yes;
				return 0;
			}
		}
	}
	no;
	return 0;
}

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
constexpr ll mod=1e9+7;

int main()
{
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  ll s,p;
  cin>>s>>p;
  for (ll x = 0; x*x <= p; ++x)
  {
    if (p == x*(s-x)) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" <<endl;
}