#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2, s;
  cin >> s1 >> s2;
  s = s1 + s2;
  stringstream ss(s);
  long long a;
  ss >> a;
  long long sq = sqrt(a);
  if (sq * sq == a)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
