#include <bits/stdc++.h>
using namespace std;
int main() {
  int zhuan(string x);
  string a, b, s;
  cin >> a >> b;
  s = a + b;
  if (sqrt(zhuan(s)) == int(sqrt(zhuan(s))))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
int zhuan(string x) {
  int num = 0;
  for (int i = 0; i < x.size(); i++) num = num * 10 + (x[i] - '0');
  return num;
}
