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

int main() {
	string a, b;
	cin >>a>>b;
	int c = stoi(a + b);
	for (int i = 1;i <= 1000;i++) {
		if (i*i == c) {
			puts("Yes");
			return 0;
		}

	}
	puts("No");
}

