#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  string s = a + b;
  int num = atoi(s.c_str());
  int max = 320;
  string ans = "No";
  for (int i = 0; i < max; i++) {
    if (num == i * i) {
      ans = "Yes";
      break;
    }
  }
  cout << ans;
  return 0;
}
