#include <iostream>
#include <math.h>
#include <string>
using namespace std;

int main() {
	string a, b;
	cin >> a >> b;
	int c = stoi(a + b);
	int x = sqrt(c);
	if (c == x * x) cout << "Yes" << endl;
	else cout << "No" << endl;
}