#include <bits/stdc++.h>
using namespace std;
int main() {
  char s1[101], s2[101];
  int dec = 0, i, j, len;
  cin >> s1 >> s2;
  cin.ignore();
  strcat(s1, s2);
  len = strlen(s1);
  for (i = 0; i < len; i++) {
    dec = dec * 10 + (s1[i] - '0');
  }
  if (dec == (sqrt(dec) * sqrt(dec)))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
