#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string a, b;
  cin >> a >> b;
  int x = stoi(a + b);
  bool flg = false;
  for (int i = 0; i < x; i++) {
    if (i * i == x) {
      flg = true;
      break;
    }
  }
  cout << ((flg) ? "Yes" : "No") << endl;
  return 0;
}
