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