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

int main() {
    string a,b;
    string ans="No";
    cin >> a >> b;
    int c=stoi(a+b);
    int d=pow(c,0.5);
    if(d*d==c){
            ans="Yes";
    }
    cout << ans <<endl;
}