#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d = 0;
  cin >> a >> b;
  c = b;
  if (b == 0) {
    c = 0;
    a *= 10;
  }
  while (c > 0) {
    c /= 10;
    d++;
  }
  for (int i = 1; i <= d; i++) a *= 10;
  if (sqrt(a + b) * sqrt(a + b) == a + b)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
