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


int main() {
  string a, b; cin >> a >> b;
  double r = sqrt(stoi(a+b));

  if(r - int(r) == 0.0) cout << "Yes" << endl;
  else cout << "No" << endl;

  return 0;
}
