#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  bool ok = false;
  int A;
  cin >> a >> b;
  A = stoi(a + b);
  for (int i = 0; i < 101; i++) {
    if (i * i == A) {
      ok = true;
    }
  }
  if (ok) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
