#include<iostream>
#include<math.h>

using namespace std;

int main() {
  long s, p;
  cin >> s >> p;

  long limit = sqrt(p);
  for(long n = 1; n <= limit; ++n) {
    if(p % n == 0 && n + (p / n) == s) {
      cout << "Yes" << endl;
      return 0;
    }
  }

  cout << "No" << endl;
}

///Bismillahir Rahmanir Rahim
#include<bits/stdc++.h>
using namespace std;
#define                          ll                          long long int
ll gcd(int a,int b)
{
    if(b==0)
        return a;
    return gcd(b,a%b);
}
long long binpow(long long base,long long power)
{
        long long result=1;
        while (power>0)
        {
                if (power%2==1)
                        result = (result*base);
                base = (base*base);
                power/=2;
        }
        return result;
}
#define                          in(x)                       scanf("%lld",&x)
#define                          in2(x,y)                    scanf("%lld %lld",&x,&y)
#define                          in3(x,y,z)                  scanf("%lld %lld %lld",&x,&y,&z)
#define                          out(x)                      printf("%lld\n",x)
#define                          cy                          printf("YES\n")
#define                          cn                          printf("NO\n")
#define                          inf                         1e18
#define                          neg                         -1e18
#define                          mx                          2111111
#define                          fast                        ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define                          fi                          first
#define                          si                          second
#define                          ce                          cout<<endl
#define                          pb                          push_back
#define                          vc(x)                       x.begin(),x.end()
#define                          pb                          push_back
#define                          pii                          pair<ll,ll>
#define                          debug                       printf("ok\n");
#define                          pvg                         pii, vector<pii>, greater<pii>;
#define                          mod                         1000000007


int main(){
    //freopen("test.txt","r",stdin);
    //fast
    ll t;

        ll i,p,j,ans=0,sum=0,s=0,n,m;

        in2(p,s);
          bool f=false;
    for(i=1;i*i<=s;i++)
    {
        if(s%i==0)
        {
            if(i+(s/i)==p) {f=true;break;}

        }
    }

    if(f) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;

 }


