#include <bits/stdc++.h>
using namespace std;
long long s,p;
int main() {
	cin>>s>>p;
	for(int i=1;i<=sqrt(p);i++){
		if(!(p%i)){
			if(i+p/i==s){
				cout<<"Yes";
				return 0;
			}
		}
	}
	cout<<"No";
	return 0;
}
#include <bits/stdc++.h>
#define ll long long
//int n; cin>>n; int i,a[n];  for(i=0;i<n;i++) cin>>a[i];
using namespace std;

int main(void){
    // Your code here!
    int t;
    t=1;
    while(t--)
    {
        ll s,p,m,n,i;cin>>s>>p;
        string ans="No";
        for(i=1;i*i<=p;i++)
        if(i*(s-i)==p)
        ans="Yes";
        cout<<ans<<endl;
    }
}
