#include <bits/stdc++.h>
bool isSquared(long long N);
int main() {
  std::string a, b;
  std::cin >> a >> b;
  int c = std::stoi(a + b);
  if (isSquared(c)) {
    std::cout << "Yes";
  } else {
    std::cout << "No";
  }
  return 0;
}
bool isSquared(long long N) {
  long long check = (long long)std::floor(std::sqrt((double)N));
  return (check ^ 2) == N;
}
