#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define ll int64_t
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,n) for(int i=1;i<=n;i++)
#define all(V) V.begin(),V.end()
#define PI 3.14159265359
#define fi fixed
#define se setprecision(10)
using namespace std;

int main() {
  ll s,p;cin >> s >> p;
  for(ll i=1;i<=sqrt(p);i++){
    if(p%i==0){
      ll a = p/i;
      if(a+i==s){
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
}

  

#include<bits/stdc++.h>
using namespace std;
int main()
{
     long long int i,s,p,j;
     cin>>s>>p;
     for(i=1;;i++){
               if(i*(s-i)==p){
                    cout<<"Yes\n";
                    return 0;
               }
       if(i*(s-i)>p){break;}
          }
     cout<<"No\n";
}

