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