#include <bits/stdc++.h>
using namespace std;
int a, b;
int ans = 0;
int main() {
  cin >> a >> b;
  int n;
  if (b / 100 != 0) {
    n = a * 1000 + b;
  } else if (b / 10 != 0) {
    n = a * 100 + b;
  } else {
    n = a * 10 + b;
  }
  for (int i = 0; i < 102; i++) {
    if (n == i * i) {
      cout << "Yes" << endl;
      break;
    }
    if (i == 101) cout << "No" << endl;
  }
  return 0;
}
