#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string a, b, c, d, e, out;
  cin >> a >> b;
  c = a + b;
  cout << c << endl;
  out = "Out";
  e = stoi(c);
  for (int i = 0; d > c; i++) {
    d = i * i;
    if (d == c) {
      out = "Yes";
      break;
    }
  }
  cout << out << endl;
  return 0;
}
