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