#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int digit = pow(10, to_string(b).length());
  int ab = a * digit + b;
  bool answer = false;
  for (int i = 0; i <= 100; i++)
    if (ab == i * i) answer = true;
  if (answer)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
