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

int main()
{
  string a, b;
  cin >> a >> b;
  float n = stoi(a + b);
  if(sqrt(n) - (int)sqrt(n) == 0.0) cout << "Yes" << endl;
  else cout << "No" << endl;
}