#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  int k = 0, c;
  cin >> a >> b;
  a += b;
  for (int i = 0; i < a.size(); i++) k = k * 10 + a[i] - 48;
  c = sqrt(k);
  if (c * c == k)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
