#include<cstdio>
#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int ans;
string a,b;
int main()
{	
	cin>>a>>b;
	a+=b;
	sscanf(a.c_str(),"%d",&ans);
	puts(int(sqrt(ans))<sqrt(ans)?"No":"Yes");
	return 0;
}