#include <bits/stdc++.h>
using namespace std;

int main(void) {
  string a, b;
  cin >> a >> b;
  int ab = stoi(a + b);
  int root = sqrt(ab);

  cout << ((root * root == ab) ? "Yes" : "No") << endl;
  return 0;
}