#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b; cin >> a >> b;
  int n = stoi(to_string(a) + to_string(b));
  int rt = sqrt(n);
  cout << (rt*rt == n ? "Yes" : "No") << endl;
  return 0;
}
