#include <iostream>
using namespace std
  
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  int target, sq;
  s = to_string(a) + to_string(b);
  target = int(s);
  sq = int(sqrt(double(target)));
  
  if(pow(sq, 2) == target){
  	cout << "Yes" << endl;
  }else{
  	cout << "No" << endl;
  }

  return 0;
}
