#include <bits/stdc++.h>
using namespace std;
vector<int> vc;
int main() {
  int a, b;
  cin >> a >> b;
  int m = a * 100 + b;
  if (a > 9) int m = a * 10 + b;
  int j = sqrt(m);
  double long k = sqrt(m);
  if (j == k && k * k == m && a < 0 && b < 0) {
    cout << "Yes";
  } else
    cout << "No";
}
