#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, temp;
  cin >> a >> b;
  if (b == 100) {
    temp = a * 1000 + b;
  } else if (b < 10) {
    temp = a * 10 + b;
  } else {
    temp = a * 100 + b;
  }
  int i = 1;
  int judge = 0;
  while (1) {
    if (i * i > temp)
      break;
    else if (i * i == temp) {
      judge = 1;
      break;
    }
    i++;
  }
  if (judge == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
