#include <bits/stdc++.h>

using namespace std;
int main()
{

    string a, b;
    cin>>a>>b;
   a = a+b;
    if(sqrt(stoi(a)) == floor(sqrt(stoi(a))))
        puts("Yes");
    else
        puts("No");
    return 0;
}
