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