#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) begin(v),end(v)
template<typename A, typename B> inline bool chmax(A &a, B b) { if (a<b) { a=b; return 1; } return 0; }
template<typename A, typename B> inline bool chmin(A &a, B b) { if (a>b) { a=b; return 1; } return 0; }
using ll = long long;
using pii = pair<int, int>;
constexpr ll INF = 1ll<<30;
constexpr ll longINF = 1ll<<60;
constexpr ll MOD = 1000000007;
constexpr bool debug = 0;
//---------------------------------//

int main() {
	ll S, P;
	cin >> S >> P;
	puts([&] {
		for (ll i = 1; i * i <= P; ++i) {
			ll n = i, m = S - i;
			if (n > 0 && m > 0 && n * m == P) return true;
		}
		return false;
	}() ? "Yes": "No");
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back 
#define mp make_pair
#define asort(a,n) sort(a,a+n)
#define vsort(v) sort(v.begin(),v.end())
#define all(v) v.begin(),v.end()
#define run ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);cerr.tie(0);
#define mod 1000000007
#define endl "\n" 
#define LL_MAX LLONG_MAX
#define yes cout<<"Yes"<<endl
#define no cout<<"No"<<endl

//********************************* mekch ************************************//

ll gcd(ll a, ll b) 
{ 
    if (b == 0) 
        return a; 
    return gcd(b, a % b);  
      
} 

ll binExp(ll x,ll n)
{
   ll res=1;
    while(n)
    {
        if(n&1) res=(res*x)%mod;
        x=(x*x)%mod;
        n>>=1;
    }
    return res;
}

bool isPerfectSquare(long double x) 
{   
  long double sr = sqrt(x); 
  
  return ((sr - floor(sr)) == 0); 
} 
  
int main()
 {
  run;
  ll t;
 
     
  // ALWAYS UES LL_MAX    
  long double  n,i,x,y,ok=0,sum=0,ans=0,res;
  ll res1,res2,res3,res4;

        cin>>x>>y;
        res=x*x-4*y;
    if (isPerfectSquare(res)) 
    {
        res1=sqrt(res);
        res2=x+res1;
        res3=x-res1;
       // cout<<"jdc";
        
        if(res2%2==0)
          res2=res2/2;
          else
          res2=-1;
          if(res3%2==0)
            res3=res3/2;
            else
            res3=-1;
            
            if(res2>0||res3>0)
            {
                if(res2>0)
                res4=x-res2;
                else
                res4=x-res3;
                
                if(res4>0)
                yes;
                else
                no;
            }
        else
        no;
    }
    else
    no;
   
  
 }