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

int main(){
  int a,b,c;
  int x=10;
  cin>>a>>b;
  while(b/x!=0){
    x*10;}
  c=a*x+b;
  int y=1;
  while(y**2>=c){
    y+=1;
  }
  if(y**==c){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}
