#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b, res = "No";
  cin >> a >> b;
  string ab = a.append(b);
  for (int i = 1; i <= 1000; ++i) {
    if (i * i == stoi(ab)) {
      res = "Yes";
    }
  }
  cout << res << "\n";
  return 0;
}
