#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int len = to_string(b).length();
  int sq = a * pow(10, len) + b;
  int h = 0;
  for (int i = sq; i > 0; i--) {
    if (i * i == sq) {
      puts("Yes");
      h = 1;
    }
  }
  if (h == 0) puts("No");
  return 0;
}
