#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  string sbuff;
  sbuff = to_string(a) + to_string(b);
  int ibuff = stoi(sbuff, 0, 10);
  for (int i = 1; i < 100; i++) {
    if ((i * i) == ibuff) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
