#include <bits/stdc++.h>
using namespace std;
const int sq_max = 316;
int main(void) {
  int product;
  int a, b;
  int sq_int;
  cin >> a >> b;
  if (b == 100) {
    product = a * 1000 + b;
  } else {
    if (b < 10) {
      product = a * 10 + b;
    } else {
      product = a * 100 + b;
    }
  }
  for (int i = 1; i <= sq_max; i++) {
    sq_int = i * i;
    if ((product == sq_int)) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}
