#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string a, b, out = "No";
  int d, e;
  cin >> a >> b;
  e = stoi(a + b);
  for (int i = 0; d > e; i++) {
    d = i * i;
    if (d == e) {
      out = "Yes";
      break;
    }
  }
  return 0;
}
