#include <iostream>
#include <string>
#include <cmath>
using namespace std;

int main()
{
	string a, b;
	cin >> a >> b;
	int c = stoi(a + b);
	int d = (int)sqrt(c);
	cout << (d * d == c ? "Yes" : "No") << endl;
	return 0;
}