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

int main() {
  string a, b;
  cin >> a >> b;
  string c = a+b;
  int d = stoi(c);
  if(int(sqrt(d))*int(sqrt(d))==d) cout << "Yes" << endl;
  else cout << "No" << endl;
}