#include <iostream>
#include <cmath>
#include <string>

using namespace std;

int main() {
	string a, b;
	cin >> a >> b;

	int x = stoi(a + b);
	int y = sqrt(x);
	y = y * y;
	cout << (x == y ? "Yes" : "No") << endl;
	return 0;
}
