#include <bits/stdc++.h>
using namespace std;
double a, b;
int main() {
  cin >> a >> b;
  if (sqrt(a * b) == int(sqrt(a * b)))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
