#include <bits/stdc++.h>
using namespace std;
int main() {
  string fig1, fig2;
  int a;
  bool flag = 0;
  cin >> fig1 >> fig2;
  a = (stoi(fig1) * pow(10, fig2.size())) + stoi(fig2);
  for (int i = 1; i <= 1000; i++) {
    if (a == pow(i, 2)) {
      flag = 1;
      break;
    }
  }
  if (flag == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
