#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int n;
  if (b < 10) {
    n = 10 * a + b;
  } else if (b < 100) {
    n = 100 * a + b;
  } else {
    n = 1000 * a + b;
  }
  int s[101];
  for (int i = 1; i <= 100; i++) s[i] = i * i;
  for (int i = 1; i <= 100; i++) {
    if (n == s[i]) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}
