#include <bits/stdc++.h>
using namespace std;
bool is_perfect_square(int n) {
  if (n < 0) return false;
  int root(round(sqrt(n)));
  return n == root * root;
}
int main() {
  int a, b;
  cin >> a >> b;
  string astr = to_string(a);
  string bstr = to_string(b);
  int final = stoi(astr + bstr);
  if (is_perfect_square(final)) {
    cout << "Yes";
  } else
    cout << "No";
  return 0;
}
