#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b;
  c = a + b;
  int r = stoi(c);
  double sq = sqrt(r);
  if ((int)sq * sq == r)
    cout << "Yes";
  else
    cout << "No";
}
