#include <bits/stdc++.h>
using namespace std;

double a, b;

int main() {
	cin >> a >> b;
	a = a*pow(10,floor(log10(b) + 1)) + b;
	if (sqrt(a)==floor(sqrt(a))) cout << "Yes" << endl;
	else cout << "No" << endl;
}