#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  string c = a + b;
  stringstream s(c);
  int x;
  s >> x;
  if (floor(pow(x, 0.5)) == pow(x, 0.5))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
