#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  string ans = "No";
  int num = stoi(a + b);
  for (int i = 0; i < (int)(2001); i++) {
    if (i * i == num) ans = "Yes";
  }
  cout << ans << endl;
}
