#include <bits/stdc++.h>
using namespace std;
long long fun(long long x, long long y) {
  long long pow = 10;
  while (y >= pow) pow *= 10;
  return x * pow + y;
}
int main() {
  long long a, b, c, k;
  cin >> a >> b;
  k = fun(a, b);
  c = sqrt(k);
  double r;
  r = sqrt(k);
  if (c == r) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
