#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b, c1;
  cin >> a >> b;
  int c2 = 0, i;
  c1 = a + b;
  for (i = 0; i < c1.length(); i++) c2 *= 10, c2 += c1[i] - 48;
  for (i = 0; i * i <= c2; i++)
    if (i * i == c2) {
      cout << "Yes";
      return 0;
    }
  cout << "No";
  return 0;
}
