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

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