#include <iostream>
#include <string>
using namespace std;

int main(){
  string a,b;
  cin >> a >> b;
  int c = stoi(a+b);
  int d = (c+1)/2;
  for(int i = 1; i<d+1;, i++){
    if(c==i*i) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}