#include <bits/stdc++.h>
int main(int argc, char const* argv[]) {
  using namespace std;
  int a, b;
  cin >> a >> b;
  int rank = log10(b) + 1;
  a *= pow(10, rank);
  a += b;
  float f2;
  float f = sqrt(a);
  if (modf(f, &f2) == 0.f) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
