#include <bits/stdc++.h>
using namespace std;
int main(void) {
  float a, b, c, k;
  cin >> a >> b;
  int cnt = 0;
  c = a;
  do {
    c /= 10;
    cnt++;
  } while ((int)c > 0);
  int i;
  k = a;
  for (i = 0; i < cnt; i++) {
    k *= 10;
  }
  c = k + b;
  float d;
  int e;
  d = sqrt(c);
  e = (int)sqrt(c);
  if (e * e == c) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  system("pause");
  return 0;
}
