#include <bits/stdc++.h>
using namespace std;
int main() {
  string A, B;
  cin >> A >> B;
  string _C = A + B;
  int C = stoi(_C);
  for (int i = 0; i < 1000; i++) {
    if (C == i * i) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
