#include <bits/stdc++.h>
using namespace std;
int main() {
  string c, re;
  re = "No";
  string a, b;
  cin >> a >> b;
  if (a == "0") {
    c = b;
  } else {
    c = a + b;
  }
  int d = stoi(c);
  for (int i = 0; i < 200; i++) {
    if (i * i == d) {
      re = "Yes";
      break;
    }
  }
  cout << re << endl;
  return 0;
}
