#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	int c;
	int bb=b;
	while(bb!=0)
	{
		a*=10;
		bb/=10;
	}
	c=a+b;
	if(pow(ceil(sqrt(c)),2)==c) puts("Yes");else puts("No");
	return 0;
}