#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string a, b;
  cin >> a >> b;
  a = a + b;
  int A = sqrt(stoi(a));
  int B = stoi(a);
  if ((int)pow(A, 2) == (int)B)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
