#include <bits/stdc++.h>
using namespace std;
int A[10000];
int main() {
  string a, b, c;
  int d;
  cin >> a >> b;
  c = a + b;
  d = stoi(c);
  int e = d;
  if (sqrt(e) * sqrt(e) == e)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
