#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
typedef long long ll;
using namespace std;
int main() {
	ll s, p;
	cin >> s >> p;
	bool ok = false;
	for (ll i = 1; i*i <= p; i++) {
		if (p%i == 0) {
			if (s - i == p / i) ok = !ok;
		}
	}
	if (ok) puts("Yes");
	else puts("No");
	return 0;
}
	
	
#include <bits/stdc++.h>
using namespace std; 
int main() {
  long long S;
  long long P;
  cin>>S>>P;
  int a=0;
  long long sum=sqrt(P);
  for(long long i=0;i<sum;i++){
    if(S*(i+1)-(i+1)*(i+1)==P){
      cout<<"Yes"<<endl;
      a=1;
      break;
    }
  }
  if(a==0){
    cout<<"No"<<endl;
  }
}