    #include<iostream>
    #include<cmath>
    using namespace std;
    int main(){
    string a,b;
int k=0,c;
    cin>>a>>b;
a+=b;
for(int i=0;i<a.size();i++)k=k*10+a[i]-48;
  c=sqrt(a);
    if(c*c==a)
    cout<<"Yes";
    else
    cout<<"No";
    return 0;
    }