#include <bits/stdc++.h>
using namespace std;
int main() {
  long double a, b, c;
  cin >> a >> b;
  string x = to_string(a);
  c = a * pow(10, x.size()) + b;
  long double d = pow(c, 1 / 2);
  long int e = d;
  d -= e;
  if (d == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
