#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string a, b;
  cin >> a >> b;
  string c = a + b;
  int x = stod(c);
  double y = sqrt(x);
  (floor(y) == y) ? cout << "Yes" : cout << "No";
  return 0;
}
