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