#include <bits/stdc++.h>
using namespace std;
int main() {
  string X, Y;
  cin >> X >> Y;
  int input = stoi(X + Y);
  int input_sqrt = (int)sqrt(input);
  if (input_sqrt * input_sqrt == input) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
