#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b = 0, lb, i, j;
  char b2[5];
  cin >> a >> b2;
  lb = strlen(b2);
  if (lb == 2 && b2[0] == '0' && b2[1] == '0')
    b = b + a * 100;
  else if (lb == 3 && b2[0] == '0' && b2[1] == '0' && b2[2] == '0')
    b = b + a * 1000;
  else {
    for (i = 0, j = (lb - 1); i < lb; i++, j--) {
      b += ((b2[i] - 48) * (pow(10, j)));
    }
    if (b < 10)
      b = b + a * 10;
    else if (b < 100 || b == 00)
      b = b + a * 100;
    else if (b < 1000 || b == 000)
      b = b + a * 1000;
  }
  if (sqrt(b) * sqrt(b) == b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
