#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b;
  int digit = log10(b) + 1;
  double p = pow(10, digit);
  c = a * (int)p + b;
  if (sqrt(c) * sqrt(c) == c) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
