#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
	int c;
	char a[10],b[10],m[110];
	scanf("%s%s",&a,&b);
	sprintf(&m,"%s%s",&a,&b);
	sscanf(&m,"%d",&c);
	for(int i=0;i<1100;i++)
	{
		if(i*i==t){cout<<"Yes"<<'\n';return 0;}
	}
	cout<<"No"<<'\n';
	return 0; 
}