#include <bits/stdc++.h>
using namespace std;
string a, b;
int c;
int main() {
  cin >> a >> b;
  string tmp = a + b;
  c = stoi(tmp);
  int sq = sqrt(c);
  if (sq * sq == c || (sq - 1) * (sq - 1) == c || (sq + 1) * (sq + 1) == c) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
