#include <bits/stdc++.h>
using namespace std;
 
int main()
{
	string a, b, c;
	cin >> a >> b;
	c = a + b;
	int n = stoi(c);
	cout << ((pow((int)(sqrt(n)),2) == n) ? "Yes" : "No") << endl;
	return 0;
}