#include<bits/stdc++.h>
#define ll long long int

using namespace std;

int main()
{
	int a,b;
	cin>>a>>b;
	int db=log10(b)+1;
	int n=a*pow(10,db)+b;
	
	int s=sqrt(n);
	if(s*s==n)cout<<"Yes\n";
	else cout<<"No\n";
	
}
