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

int main(){
    string a,b;
    cin>>a>>b;

    int num = stoi(a+b);
    int sq = sqrt(num);

    if(num == sq*sq) cout<<"Yes\n";
    else cout<<"No\n";
}