#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  int y = stoi(a + b);
  int f = 0;
  for (int i = 0; i < 1000000; i++) {
    if (i * i == y) ++f;
  }
  if (f > 0) {
    cout << "Yes" << endl;
  } else
    cout << "No" << endl;
}
