#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a;
  cin >> b;
  int bCopy = b;
  int ketaNum = 1;
  while (bCopy >= 10) {
    ketaNum++;
    bCopy /= 10;
  }
  bCopy = b;
  int connected = (a * pow(10, ketaNum)) + b;
  int flooredSqrt = floor(sqrt(connected));
  if (pow(flooredSqrt, 2) == connected) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
