#include <bits/stdc++.h>
using namespace std;
int main(void){
    string a,b;
    double ans;
    cin>>a>>b;
    a=a+b;
    ans=stoi(a);
    if(sqrt(ans)==(int)sqrt(ans))cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}
