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