#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string A,B;
  cin >> A >> B;
  string C;
  C=A+B;
  int D=sqrt(stoi(C));
  if(D*D==stoi(C)){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}