#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a, b;
  int kai = 1;
  int ket = 1;
  int N;
  cin >> a >> b;
  while (0) {
    b = b / 10;
    if (b / 10 < 10) {
      break;
    }
    kai = kai + 1;
  }
  for (int i = 1; i <= kai; i++) {
    ket = ket * 10;
    N = a * ket + b;
  }
  for (int x = 0; x < 500; x++) {
    if (x * x == N) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
    return 0;
  }
  return 0;
}
