#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int c = b;
  int q = 0;
  do {
    q++;
    c /= 10;
  } while (c);
  int i;
  for (i = 0; i < q; i++) {
    a *= 10;
  }
  a += b;
  for (i = 0; i < a; i++) {
    if (i * i == a) {
      cout << "Yes\n";
      return 0;
    }
  }
  cout << "No\n";
  return 0;
}
