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