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