/**
 *    author:     stein
 *    created:    2020.11.27 12:14:31
**/
#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  long long s, p;
  cin >> s >> p;
  for (long long i = 1; i <= 1000000; i++) {
    if (i * (s - i) == p) {
      cout << "Yes" << '\n';
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}


#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int)n; i++)
using ll = long long;

int main(){
  ll s, p;
  cin >> s >> p;
  bool can = false;
  for(ll x = 1; x*x <= p; x++) {
    if(p % x == 0 and x + p/x == s) can = true;
  }
  cout << (can ? "Yes": "No") << endl;
  return 0;
}
