#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  a = a + b;
  double i = std::stoi(a);
  i = sqrt(i);
  if (ceil(i) == floor(i)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
