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

int main(){
  string a,b,c;
  int n,m;
  cin >> a >> b;
  c=a+b;
  n=stoi(c);
  m=sqrt(n);
  if (n==m*m){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
 }
